Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on A Little Clojure. Parent comment
(if (= a b c) true)
if (a == b && b == c) return true;
(if (or (= a b c) (not= d e)) true)
if ((a == b && b == c) || d != e) return true;
Wanna see if an “array” is full of the same value?
(apply = [2 2 2])
[2, 2, 2].every( (val, i, arr) => val === arr[0] )
There are no comments on this comment yet.
Wanna see if an “array” is full of the same value?
In JS: These are not pathological cases.