3 ms·
And, considering syntactic sugar for operators, fib and (+) examples are quite alike Prelude> let (+) 2 2 = 5; 4 + 2 = 42 in [2 + 2, (+) 4 2, 0 + 3] [5,42,
by lelf 15y ago
And, considering syntactic sugar for operators, fib and (+) examples are quite alike
Prelude> let (+) 2 2 = 5; 4 + 2 = 42 in [2 + 2, (+) 4 2, 0 + 3]
[5,42,*** Exception: <interactive>:1:5-29: Non-exhaustive patterns in function +
Prelude> let fib 0 = 1 in fib 0
1