Macaulay2 » Documentation
Packages » Macaulay2Doc » The Macaulay2 language » lists and sequences » VisibleList » Array
next | previous | forward | backward | up | index | toc

# Array -- the class of all arrays -- [...]

## Description

An array can be created by enclosing elements of any type in brackets.

    i1 : x = [a,b,c]

    o1 = [a, b, c]

    o1 : Array

    i2 : # x

    o2 = 3

    i3 : x#1

    o3 = b

    o3 : Symbol

To convert arrays to and from other types of BasicList, one may use new.

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

    o4 = [a, b, c]

    o4 : Array

    i5 : new Sequence from [a,b,c]

    o5 = (a, b, c)

    o5 : Sequence

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

## Functions and methods returning an array:

- `Array | Array` -- see List | List -- join lists, sequences or arrays

## Methods that use an array:

- `BettiTally Array` -- see BettiTally -- the class of all Betti tallies
- `help(Array)` -- see help -- view documentation nodes
- Ideal ^ Array -- bracket power of an ideal
- `MonomialIdeal ^ Array` -- see Ideal ^ Array -- bracket power of an ideal
- `interval(Array)` -- see interval -- construct an interval
- Matrix ^ Array -- component of map corresponding to summand of target
- Matrix _ Array -- component of map corresponding to summand of source
- Module ^ Array -- projection onto summand
- Module _ Array -- inclusion from summand
- Module Array -- make a chain complex from a module
- `monoid(Array)` -- see monoid -- make or retrieve a monoid
- MonoidElement Array (missing documentation)
- `package(Array)` -- see package -- get containing package
- `InexactFieldFamily Array` -- see Ring Array -- the standard way to make a polynomial ring
- Ring Array -- the standard way to make a polynomial ring

## For the programmer

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

The source of this document is in /build/macaulay2-88fgJW/macaulay2-1.25.11+ds/M2/Macaulay2/packages/Macaulay2Doc/ov_lists.m2:698:0.