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

elements -- list of elements

Synopsis

Description

i1 : set{1,2,3,1,2,4}

o1 = set {1, 2, 3, 4}

o1 : Set
i2 : elements oo

o2 = {1, 2, 3, 4}

o2 : List
i3 : tally apply(10, i -> random 5)

o3 = Tally{0 => 2}
           1 => 1
           2 => 1
           3 => 5
           4 => 1

o3 : Tally
i4 : elements oo

o4 = {0, 0, 1, 2, 3, 3, 3, 3, 3, 4}

o4 : List

See also

Ways to use elements :