package seqes
Module type Sigs.SEQMON1ALLSource
Other functions
Sequences also have functions that do not take any caller-provided function as arguments. For these functions, only the monad that the sequence is specialised to matters.
In addition to all those functions, the SEQMON1ALL module signature also includes the SEQMON1TRANSFORMERS module signature, but specialised with the type 'a callermon := 'a. All the functors that produce modules with this signature also produce all the transformers and traversors that operate with no caller monad.
mon is the type constructor for the monad used in the sequence.
The type is meant to be substituted by the functor that produces modules of following this signature.
t is the type constructor for the sequence.
The type is meant to be substituted by the functor that produces modules of following this signature.
Any monad that we can use to produce transformers, we can also use to produce traversors. Thus, SEQMON1TRANSFORMERS includes SEQMON1TRAVERSORS and all the functors producing transformer also produce traversors.
See Stdlib.Seq.iter
See Stdlib.Seq.iteri
See Stdlib.Seq.find
See Stdlib.Seq.iter2
val init : int -> (int -> 'a) -> 'a tSee Stdlib.Seq.init
val unfold : ('b -> ('a * 'b) option) -> 'b -> 'a tval forever : (unit -> 'a) -> 'a tval iterate : ('a -> 'a) -> 'a -> 'a tSee Stdlib.Seq.map
See Stdlib.Seq.mapi
See Stdlib.Seq.scan
See Stdlib.Seq.group
See Stdlib.Seq.map2
See Stdlib.Seq.equal
val empty : 'a tSee Stdlib.Seq.empty
val return : 'a -> 'a tSee Stdlib.Seq.cons
val repeat : 'a -> 'a tSee Stdlib.Seq.cycle
See Stdlib.Seq.take
See Stdlib.Seq.drop
See Stdlib.Seq.once
See Stdlib.Seq.zip
See Stdlib.Seq.unzip
See Stdlib.Seq.split
val ints : int -> int tSee Stdlib.Seq.ints