Fork me on GitHub
#clojuredesign-podcast
<
2020-09-25
>
nate20:09:39

It's Friday, so here's a new episode, talking about the for macro: https://clojuredesign.club/episode/085-for-for-the-when/

❤️ 6
👍 3
jumar18:10:56

You said that nil isn't added to the output collection but this seems to contradict it:

(for [x [1 2 nil 3]] 
  x)
;;=> (1 2 nil 3)
Am I missing something?

👍 3
nate19:10:43

Huh, that is true, looks like you have to add a :when to skip the nils:

(for [x [1 2 nil 3] :when x] 
  x)
;;=> (1 2 3)

nate19:10:46

good catch