# 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
• ChainComplex Array -- degree shift
• ChainComplexMap Array -- degree shift
• GradedModule Array -- degree shift
• "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
• "ChainComplexMap ^ Array" -- see Matrix ^ Array -- component of map corresponding to summand of target
• "GradedModuleMap ^ Array" -- see Matrix ^ Array -- component of map corresponding to summand of target
• Matrix ^ Array -- component of map corresponding to summand of target
• "ChainComplexMap _ Array" -- see Matrix _ Array -- component of map corresponding to summand of source
• "GradedModuleMap _ Array" -- see Matrix _ Array -- component of map corresponding to summand of source
• Matrix _ Array -- component of map corresponding to summand of source
• "ChainComplex ^ Array" -- see Module ^ Array -- projection onto summand
• Module ^ Array -- projection onto summand
• "ChainComplex _ Array" -- see Module _ Array -- inclusion from summand
• Module _ Array -- inclusion from summand
• Module Array -- make a chain complex from a module
• "monoid(Array)" -- see monoid -- make or retrieve a monoid
• "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
• RingElement Array -- substitution of variables

## For the programmer

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