Macaulay2 » Documentation
Packages » Macaulay2Doc » The Macaulay2 language » Type » WrapperType
next | previous | forward | backward | up | index | toc

WrapperType -- a class of lists with abbreviated constructors

Description

These are the types X of lists that can be constructed by expressions of the form X {a,b,c,...}, or, for lists of length one, by an expression of the form X a. They also act on sequences.

i1 : X = new WrapperType of BasicList

o1 = X

o1 : WrapperType
i2 : X {a,b,c}

o2 = X{a, b, c}

o2 : X
i3 : X a

o3 = X{a}

o3 : X

See also

Methods that use a wrapper type:

  • WrapperType List
  • WrapperType Sequence
  • WrapperType Thing

Protected objects of class WrapperType:

  • Describe -- the class of the output of describe
  • DirectSum -- the class of all direct sum expressions
  • Holder -- the class of all holder expressions
  • Minus -- the class of all minus expressions
  • Parenthesize
  • Product -- the class of all product expressions
  • Sum -- the class of all sum expressions
  • TensorProduct -- the class of all tensor product expressions

For the programmer

The object WrapperType is a type, with ancestor classes Type < MutableHashTable < HashTable < Thing.


The source of this document is in Macaulay2Doc/doc12.m2:39:0.