val next_step : 'a Base__Sequence.t -> ('a, 'a Base__Sequence.t) Base__Sequence.Step.t
next_step
returns the next step in a sequence's construction. It is like next
, but it also allows observing Skip
steps.
val delayed_fold_step : 'a Base__Sequence.t -> init:'s -> f:('s -> 'a option -> k:('s -> 'r) -> 'r) -> finish:('s -> 'r) -> 'r
delayed_fold_step
is liked delayed_fold
, but f
takes an option where None
represents a Skip
step.