Macaulay2 » Documentation
Packages » Macaulay2Doc » The Macaulay2 language » lists and sequences » MutableList » Bag
next | previous | forward | backward | up | index | toc

Bag -- the class of all bags

Description

A bag can be used for enclosing something in a container to prevent it from being printed, in normal circumstances. Any mutable list can be used for this purpose, but bags are designed for this purpose. In comparison and sorting, they are declared to be incomparable.

Menu

Methods that use a bag:

  • Bag ? Bag
  • unbag(Bag) -- see unbag

For the programmer

The object Bag is a self initializing type, with ancestor classes MutableList < BasicList < Thing.


The source of this document is in Macaulay2Doc/ov_debugging.m2:771:0.