code-reviews

misha 2016-04-08T10:05:35.000035Z

@hiredman: this is the code https://www.refheap.com/d9418416ff7a30e9668721c9e

misha 2016-04-08T10:07:09.000036Z

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

misha 2016-04-08T10:08:16.000038Z

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

2016-04-08T10:13:10.000039Z

for is not a loop in clojure

2016-04-08T10:13:47.000040Z

for is a sequence comprehension

2016-04-08T10:18:26.000042Z

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

2016-04-08T10:19:18.000043Z

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

misha 2016-04-08T10:21:02.000044Z

@hiredman: oh, sweet, thank you