RosettaCodeData/Task/Nested-templated-data/Haskell/nested-templated-data-3.hs

3 lines
49 B
Haskell

indexed :: [a] -> [(Int, a)]
indexed = zip [0..]