mirror of
https://github.com/unisonweb/unison.git
synced 2024-09-11 10:35:57 +03:00
298 B
298 B
scratch/main> builtins.merge
loop : List Nat -> Nat -> List Nat
loop l = cases
0 -> l
n -> loop (n +: l) (drop n 1)
range : Nat -> List Nat
range = loop []
scratch/main> add
> range 2000
Should be cached:
> range 2000