Module BatFingerTree.Generic

module Generic: sig .. end

include BatFingerTree.S
val lookup : (('m -> bool) -> ('a, 'm) fg -> 'a, 'a, 'm) wrap

lookup p t, when p is monotonic, returns the first element of the sequence for which the measure of its predecessors in the sequence (itself included) satisfies p.

val measure : (('a, 'm) fg -> 'm, 'a, 'm) wrap

measure m gives the measure of the whole tree, whose meaning depends on the measure chosen.

O(1).

val split : (('m -> bool) -> ('a, 'm) fg -> ('a, 'm) fg * ('a, 'm) fg, 'a, 'm) wrap

split p t, when p is monotonic, returns (t1, t2) where t1 is the longest prefix of t whose measure does not satisfies p, and t2 is the rest of t.