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

AngleBarList -- the class of lists delimited by <| ... |>

Description

An angle bar list can be created by enclosing elements of any type between angle bars.

i1 : x = <|a,b,c|>

o1 = <|a, b, c|>

o1 : AngleBarList
i2 : # x

o2 = 3
i3 : x#1

o3 = b

o3 : Symbol

To convert angle bar lists to and from other types of BasicList, one may use new.

i4 : new AngleBarList from {a,b,c}

o4 = <|a, b, c|>

o4 : AngleBarList
i5 : new Sequence from <|a,b,c|>

o5 = (a, b, c)

o5 : Sequence

For an overview of lists and sequences, see lists and sequences.

Methods that use an angle bar list :

For the programmer

The object AngleBarList is a type, with ancestor classes VisibleList < BasicList < Thing.