Guest User

Untitled

a guest
Oct 17th, 2017
64
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. myElemIndices :: Eq a => a -> [a] -> [Int]
  2. myElemIndices x [] = []
  3. myElemIndices x (h:t) | x == h = 0 : myElemIndices x t
  4. | otherwise = myElemIndices x t
Add Comment
Please, Sign In to add comment