Add while-let.
Signed-off-by: Richard Newman <rnewman@twinql.com>
This commit is contained in:
parent
bf080ced3c
commit
6c367616e6
1 changed files with 6 additions and 0 deletions
|
@ -29,3 +29,9 @@
|
|||
(if ks
|
||||
(assoc m k (conj-in (get m k) ks v))
|
||||
(assoc m k (conj (get m k) v))))
|
||||
|
||||
(defmacro while-let [binding & forms]
|
||||
`(loop []
|
||||
(when-let ~binding
|
||||
~@forms
|
||||
(recur))))
|
||||
|
|
Loading…
Reference in a new issue