Developer Tools - Container based data structures

Container based data structures. Part of the dtools PyPI namespace projects.

class Box
single item invariant mutable container
can hold one or no items
both `map` and `bind` return new objects
class FunctionalTuple
subclass of tuple ("is-a" tuple)
improved, more functional, tuple methods
designed to be further inherited from
hashable if all contained items are hashable
class ImmutableList
hashable, immutable list-like data structure
hashability enforced when instantiated
mutable list methods return new objects
class MayBe
implementation of the maybe (optional) monad
represents a possibly missing value
class Xor
implements of a left bias either monad
represents an immutable left or right value, but not both

Detailed dtools.containers documentation

Archived projects with dtools.tuples history