for
lazy sequence comprehensions
Usage:
(for [binding seq]* body) (for-each [binding seq]* body)for builds a lazy sequence by iterating over one or more bindings. for-each evaluates the same comprehension for side effects and returns the final result.
An Example
(for ([x [1 2]]
[y [10 20]])
(+ x y))
This example lazily yields 11, 21, 12, and 22.