Fork me on GitHub
#code-reviews
<
2016-04-08
>
misha10:04:09

are you saying "prefer for loop over map"? if so, why is that?

misha10:04:16

or was it "replace both maps with a single for loop"?

hiredman10:04:10

for is not a loop in clojure

hiredman10:04:47

for is a sequence comprehension

hiredman10:04:26

for can map, mapcat, filter, and take-while, and can do over products of seqs

hiredman10:04:18

http://programming-puzzler.blogspot.com/2013/03/logic-programming-is-overrated.html has some nice complicated usages of for so you can see what you can do with it

misha10:04:02

@hiredman: oh, sweet, thank you