unison/unison-src/demo/1.u
Paul Chiusano 64b68ba149 added a couple demo files, working up to a distributed sort function
also spotted runtime bug, added pending test
2018-11-04 13:30:08 -05:00

11 lines
169 B
Plaintext

increment : Nat -> Nat
increment n = n + 1
replicate : Nat -> a -> [a]
replicate n a = Stream.toSequence (take n (constant a))
> increment 1
-- > replicate 20 "ARI"