Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Page
Library
Module
Module type
Parameter
Class
Class type
Source
Algaeff.Sequencer
SourceEffects for constructing a Seq.t
.
module S = Algaeff.Sequencer.Make (Int)
(* The sequence corresponding to [[1; 2; 3]]. *)
let seq : int Seq.t = S.run @@ fun () -> S.yield 1; S.yield 2; S.yield 3
(* An implementation of [List.to_seq]. *)
let to_seq l : int Seq.t = S.run @@ fun () -> List.iter S.yield l
The sequencers are generators for Seq.t
.