wiley_pastebin

CS6 W3 L1 Lists in Haskell 1

Dec 16th, 2019
530
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.07 KB | None | 0 0
  1. addone :: [Int] -> [Int]
  2. addone [] = []
  3. addone (x:xs) = (x+1) : addone xs
Advertisement
Add Comment
Please, Sign In to add comment