Package net.sf.saxon.ma.zeno

This package contains an implementation of XDM sequences known as the ZenoSequence.

A ZenoChain is a list of elements, organized as a sequence of contiguous chunks; it is designed to ensure that elements can be efficiently added to either end of the sequence without copying the entire sequence, while also leaving the original sequence intact.

It is thus an implementation of immutable persistent lists optimized for a scenario where changes typically occur only at the ends of the sequence.

The ZenoSequence is a specialization of a ZenoChain for implementing XDM sequences.