Automatically generated. Retrieves the mulck/segtree/mul: forall<a> (monoid : monoid<a>) -> ((a, a) -> a)
constructor field of the monoidck/segtree/monoid: V -> V
type.
Automatically generated. Retrieves the oneck/segtree/one: forall<a> (monoid : monoid<a>) -> a
constructor field of the monoidck/segtree/monoid: V -> V
type.
Get the k
-th element.
The first element is at position 0 (0-based).
Return the largest integer k
such that the product from the first element
(inclusive) to the k
-th element (exclusive) holds p
.
The first element is at position 0 (0-based).
p
must be decreasing and the product of the empty interval must hold p
.
Return the product from the left
-th element (inclusive) to right
-th element (exclusive).
The first element is at position 0 (0-based).
Create a segment tree.
Set a value to an element. The first element is at position 0 (0-based).
Apply a function to an element. The first element is at position 0 (0-based).
Segment tree
Usage:
.