let
scan xs ~f =
match
next xs
with
|
Some
init
->
scanl xs ~init ~f
|
None
->
empty ()