next | previous | forward | backward | up | top | index | toc | Macaulay2 web site

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

Synopsis

Description

Many operations on lists apply to vertical lists, since it is a VisibleList. The main difference is the way that it is displayed.
i1 : a .. e

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

o1 : Sequence
i2 : v = VerticalList oo

o2 = {a}
     {b}
     {c}
     {d}
     {e}

o2 : VerticalList
i3 : v_1

o3 = b

o3 : Symbol
i4 : length v

o4 = 5
It is easy to get a normal list back for those operations which do not apply to vertical lists:
i5 : toList v

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

o5 : List

Functions and methods returning a vertical list :

For the programmer

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