This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; For ClojureDart in a bout of NIH syndrome we rewrote Clojure for | |
;; it seems to be faster because we don't use concat | |
(defmacro for | |
"List comprehension. Takes a vector of one or more | |
binding-form/collection-expr pairs, each followed by zero or more | |
modifiers, and yields a lazy sequence of evaluations of expr. | |
Collections are iterated in a nested fashion, rightmost fastest, | |
and nested coll-exprs can refer to bindings created in prior | |
binding-forms. Supported modifiers are: :let [binding-form expr ...], | |
:while test, :when test. |
OlderNewer