3. user=> (doc dorun)
1. lazy sequences produced via functions that
have side effects
2. dorun can be used to force any other side
effects. Walks through the successive nexts of
the seq, does not retain the head and returns
nil.
4.
5. doall
function
Usage: (doall coll)
(doall n coll)
1. lazy sequences are produced via functions that
have side effects
2. doall can be used to force any effects. Walks
through the successive nexts of the seq, retains the
head and returns it, thus causing the entire seq to
reside in memory at one time.
6.
7. swap!
function
Usage: (swap! atom f)
(swap! atom f x)
(swap! atom f x y)
(swap! atom f x y & args)
* Atomically swaps the value of atom to be:
(apply f current-value-of-atom args).
* f should be free of side effects.
* Returns the value that was swapped in.