2 ms·
List comperhension version without threading: (reduce + (for [n [1, 2, 3, 4, 5] :when (= 1 (mod n 3))] (* n n)))
by fulafel 7y ago
List comperhension version without threading:
(reduce +
(for [n [1, 2, 3, 4, 5]
:when (= 1 (mod n 3))]
(* n n)))