Module Sek__.Segment
val is_valid : 'a Sek__.PublicTypeAbbreviations.segment -> bool
is_valid (a, i, k)
determines whether the indexi
and lengthk
define a valid segment of the arraya
.
val is_empty : 'a Sek__.PublicTypeAbbreviations.segment -> bool
is_empty seg
determines whether the array segmentseg
is empty.
val iter : Sek__.PrivateSignatures.pov -> 'a Sek__.PublicTypeAbbreviations.segment -> ('a -> unit) -> unit
iter pov seg f
applies the functionf
in turn to every element of the array segmentseg
. The direction of iteration is dictated by the parameterpov
.
val iter2 : Sek__.PrivateSignatures.pov -> 'a Sek__.PublicTypeAbbreviations.segment -> 'b Sek__.PublicTypeAbbreviations.segment -> ('a -> 'b -> unit) -> unit
iter2 pov seg1 seg2 f
applies the functionf
in turn to every pair of elements drawn synchronously from the the array segmentsseg1
andseg2
. The two segments must have the same size. The direction of iteration is dictated by the parameterpov
.