Examples of Maple Data StructuresYou may need these Maple data structures when solving mathematical problems.Expression SequencesListsSetsArraysTablesStrings

<Text-field style="Heading 2" layout="Heading 2" bookmark="bkmrk0">Expression Sequences</Text-field>An expression sequence is a group of Maple expressions separated by commas. Expression sequences preserve the order and the repetition of their elements.a, b, b, c, b, a;See Expression Sequences for more information.
<Text-field style="Heading 2" layout="Heading 2" bookmark="bkmrk1">Lists</Text-field>A list is a collection of elements separated by commas and enclosed in square brackets. Maple preserves the order and repetition of items in a list. As a result, you can extract a particular element from a list.marks := [92,86,91,76,83,88,85,90,88,79,81];marks[2];See Sets and Lists for more information.
<Text-field style="Heading 2" layout="Heading 2" bookmark="bkmrk2">Sets</Text-field>A set is a collection of elements enclosed in braces. Maple preserves neither order nor repetition in a set; therefore these three sets are equivalent.{a,b,c},{c,a,b},{a,a,b,c,a};See Sets and Lists for more information.
<Text-field style="Heading 2" layout="Heading 2" bookmark="bkmrk3">Arrays</Text-field>An Array is a multidimensional data structure which can be indexed by integer ranges. The following is an Array of powers of 2.powers_of_two:= Array( 1..4, [2,4,8,16] );powers_of_two[3];See Array for more information.
<Text-field style="Heading 2" layout="Heading 2" bookmark="bkmrk4">Tables</Text-field>A table is similar to an array, but it can have anything as indices, not just integers.translate:= table([one=eins, two=zwei, three=drei]);translate[two];See table for more information.
<Text-field style="Heading 2" layout="Heading 2" bookmark="bkmrk5">Strings</Text-field>A string is a sequence of characters that has no value other than itself. It is created by enclosing a string of characters within a pair of double-quotes.astring:="This is a string.";astring[11..16];See strings for more information.The Data Structures Tutorial gives a more in-depth introduction to the Maple data structures.

See AlsoApplications and ExamplesArrayData Structures TutorialEnter Expressions in MapleExpression SequencesSets and Listsstringstable