RosettaCodeData/Task/Variables/Haskell/variables-4.hs
2023-07-01 13:44:08 -04:00

4 lines
132 B
Haskell

funkshun m = case foo m of
[a, b] -> a - b
a : b : c : rest -> a + b - c + sum rest
a -> sum a