Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
- listIndices :: [a] -> [Int]
Documentation
listIndices :: [a] -> [Int] Source
Turns any list into a list of the same length with the values being the indices. E.g.: "abdasd" -> [0,1,2,3,4,5]
Safe Haskell | Safe |
---|---|
Language | Haskell2010 |
listIndices :: [a] -> [Int] Source
Turns any list into a list of the same length with the values being the indices. E.g.: "abdasd" -> [0,1,2,3,4,5]