Macaulay2 » Documentation
Packages » Macaulay2Doc :: NumberedVerticalList
next | previous | forward | backward | up | index | toc

NumberedVerticalList -- a type of visible self-initializing list that prints vertically

Synopsis

Description

All operations on lists apply to numbered vertical lists, since they inherit from the type VisibleList. The only difference is the way that a numbered vertical list is displayed vertically, with index numbers labelling the entries.
i1 : a .. e

o1 = (a, b, c, d, e)

o1 : Sequence
i2 : v = NumberedVerticalList oo

o2 = {0 => a}
     {1 => b}
     {2 => c}
     {3 => d}
     {4 => e}

o2 : NumberedVerticalList
i3 : v_1

o3 = b

o3 : Symbol
i4 : length v

o4 = 5
One may get a normal list back from a vertical list as follows.
i5 : toList v

o5 = {a, b, c, d, e}

o5 : List

See also

Functions and methods returning a numbered vertical list :

For the programmer

The object NumberedVerticalList is a self initializing type, with ancestor classes VerticalList < List < VisibleList < BasicList < Thing.