News for hackers. Stuff that matters.
Re:Composing Programs – Python 3 in the tradition of SICP by emidln on Sunday April 10, 2016 @10:56AM (#11466367)
Some lisps have similar comprehensions. Common Lisp has `iterate` (listcomp) and arguably `loop` (listcomp). Clojure has `for` (genexp) and `(doall (for ...))` (listcomp). A very common clojure library (Plumbing) implements dictcomps via for-map, although you could do python 2.6-style dictcomps yourself via

    (defmacro dict-comp 
      [bindings & body] 
      `(into {} (for ~bindings (do ~@body))))

There are no comments on this comment yet.