i1 : A = set(3,7,9,6) o1 = set {3, 6, 7, 9} o1 : Set |
i2 : toList A o2 = {9, 3, 6, 7} o2 : List |
The command toList 1..9 will throw an error, because toList comes before .. in Macaulay2's order of operations. To create a list from a range, use toList (1..9) instead.
i3 : toList (1..9) o3 = {1, 2, 3, 4, 5, 6, 7, 8, 9} o3 : List |
Converting between list types may change the order of the elements in unexpected ways.
i4 : toList set {4,5,13} o4 = {4, 13, 5} o4 : List |
The object toList is a compiled function.