
6 Aug
2021
6 Aug
'21
5:05 a.m.
On Fri, Aug 06, 2021 at 04:17:55PM +0800, Mxzixl wrote:
Consider ML-style? :D
def fib(n): | n == 0 = 0 | n == 1 = 1 | otherwise = fib(n-1) + fib(n-2)
I like the look of this when I read Haskell code. We can bike-shed the syntax, but I think that's more promising than multiple function definitions.
--
Steve