mirror of
https://github.com/unisonweb/unison.git
synced 2024-09-21 07:17:25 +03:00
64b68ba149
also spotted runtime bug, added pending test
11 lines
169 B
Plaintext
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"
|