Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- foo :: State -> [a] -> (State -> a -> State) -> ([a], State)
- foo st (x:xs) f = (xs, f st x)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement