Hi all, I'm struggling with "when" code structures and my imperative mindset.
What is the better approach (or functional approach) to work with a code like the below? (defn parse-group [group-identifier line] (when (= group-identifier "ID1") (handle-id1 line)) (when (= group-identifier "ID2") (handle-id2 line)) (when (= group-identifier "ID3") (handle-id3 line))) Thank you. -- christian -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en