#157
Indexing Sequences
 

Difficulty:Easy
Topics:seqs


Transform a sequence into a sequence of pairs containing the original elements along with their index.
test not run
(= (__ [:a :b :c]) [[:a 0] [:b 1] [:c 2]])
test not run
(= (__ [0 1 3]) '((0 0) (1 1) (3 2)))
test not run
(= (__ [[:foo] {:bar :baz}]) [[[:foo] 0] [{:bar :baz} 1]])


Code which fills in the blank: