Next: fingertrees exceptions, Previous: fingertrees intro, Up: fingertrees [Contents][Index]
Return a new fingertree, parameterised by the given monoid.
Return the measure of FINGERTREE, as defined by FINGERTREE’s monoid.
Return #t
if OBJ is a fingertree, #f
otherwise.
Return #t
if there are no items in the fingertree, #f
otherwise.
Return the new fingertree created by adding the item to the front of FINGERTREE.
Return the new fingertree created by adding item to the end of FINGERTREE.
Returns 2 values: the item at the front of FINGERTREE, and a new fingertree containing all but
the front element. If FINGERTREE is empty: a pfds-fingertree-empty-condition
condition
is raised.
Return 2 values: a new fingertree containing all but the rear element of FINGERTREE, and the
rear element itself. If FINGERTREE is empty: a pfds-fingertree-empty-condition
condition is raised.
Return a new fingertree which contains all of the elements of fingertree1, followed by all the elements of fingertree2. The arguments are assumed to be parameterised by the same monoid.
Return a fingertree containing all of the elements of the list argument, in the same order.
Return a list of all the items in FINGERTREE, in the order they would be unconsed.
Return 2 values: a new finger tree representing the largest prefix of FINGERTREE for which
applying the predicate to it’s accumulated measure returns #f
; is a new fingertree
containing all those elements not in the first fingertree.
predicate must be a function accepting a single argument and returning a boolean.
Similar to fingertree-split
, however, instead of returning the remainder as the second
argument, return the head of the remainder as second value, and tail of the remainder as third
value.
Return the value obtained by iterating the COMBINER procedure over FINGERTREE in left–to–right order. This procedure takes two arguments: the current value from FINGERTREE, and an accumulator; it’s return value is used as accumulator for the next iteration. The initial value for the accumulator is given by the base argument.
Similar to fingertree-fold
, but iterate in right–to–left order.
Return a new fingertree in which the items are in the opposite order from FINGERTREE.
Next: fingertrees exceptions, Previous: fingertrees intro, Up: fingertrees [Contents][Index]
This document describes version 0.5.0-devel.1 of MMCK PFDS.