Commit 2024-05-26 03:16 2aca580b
View on Github →feat: List.iterate
(#13214)
This PR add an new function for list: List.iterate
. iterate f a n
is [a, f a, ..., f^[n - 1] a]
.
The name matches Haskell's iterate
feat: List.iterate
(#13214)
This PR add an new function for list: List.iterate
. iterate f a n
is [a, f a, ..., f^[n - 1] a]
.
The name matches Haskell's iterate