Enumerable.Rope impl

A convenience implementation that enumerates over the leaves of the rope but none of the parent/concatenation nodes.

Refer to the Rope module documentation for leaf vs parent/concat node.

Source

Functions summary

Functions

count(rope)

A count of the leaf nodes in the rope. This current traverses the rope to count them.

Source

member?(rope, value)

Searches the ropes leaves in order for a match.

Source

reduce(rope, acc, fun)

Reduces over the leaf nodes.

Source