Fork me on GitHub
#hoplon
<
2015-11-24
>
levitanong09:11:38

Hi all, does loop-tpl have a way to get the index?

micha09:11:05

sure, you can do like this @levitanong

micha09:11:23

(defn indexed [coll]
  (map-indexed list coll))

...

(loop-tpl :bindings [[i thing] (cell= (indexed things))]
  ...

micha09:11:36

there we go