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

3 lines
49 B
Haskell
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
indexed :: [a] -> [(Int, a)]
indexed = zip [0..]