3 ms·
oh god, no top level patterns it's such a beautiful thing ..
by agumonkey 6y ago
oh god, no top level patterns
it's such a beautiful thing ..
- scotty79 6y agoIt has mathematical beauty. But I'm not a fan.
- sullyj3 6y agoI really like the Unison syntax: fib = cases 0 -> 0 1 -> 1 n -> fib (drop n 1) + fib (drop n 2) (drop is (-) for natural numbers, clamping to 0.)
- johnday 6y agoThe fairly popular `LambdaCase` extension gives fib = \case 0 -> 0 [...]