Fork me on GitHub
#meander
<
2020-04-05
>
noprompt20:04:08

(defn indexed* [coll]
  (map-indexed vector coll))

(me/defsyntax indexed [& patterns]
  `(me/and (me/pred seqable?)
           (me/app indexed* ([email protected]))))
Has anyone done something similar to this? ☝️

noprompt20:04:24

I think someone had asked about how to do something like this before.