Skip to content

Instantly share code, notes, and snippets.

Created January 28, 2011 17:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/800556 to your computer and use it in GitHub Desktop.
Save anonymous/800556 to your computer and use it in GitHub Desktop.
<qbg> (meta #'for)
<sexpbot> ⟹ {:macro true, :ns #<Namespace clojure.core>, :name for,
:file "clojure/core.clj", :line 3582, :arglists ([seq-exprs
body-expr]), :added "1.0", :doc "List comprehension. Takes a vector of
one or more\n binding-form/collection-expr pairs, each followed by
zero or more\n modifiers, and yields a lazy sequence of evaluations
of expr.\n Collections are iterated in a nested fashion, rightmost
fastest,\n and nested coll-exprs can refer to bindings created in
prior\n binding-forms. Supported modifiers are: :let [binding-form
expr ...],\n :while test, :when test.\n\n (take 100 (for [x (range
100000000) y (range 1000000) :while (< y x)] [x y]))"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment