TU-Berlin → Inst. f. Mathematik → Algebra und Zahlentheorie → KASH → Documentation → Reference Manual
KASH3 Reference Manual
search    

Keyword

Lists

Description

A 'list' is a collection of objects separated by commas and enclosed in brackets.

Examples

primes:= [2, 3, 5, 7, 11, 13, 17, 19]; # a list containing 8 elements Append_(primes, [23, 29]); # append two numbers to the list primes[5]; # the 5th element in the list primes[9] := 77; # set the 9th list entry to 77
L := [1,2,TRUE,3/4, X^2+2]; # a list of elements of different types

Built: Mon Nov 14 21:12:39 UTC 2005 on mack
The KANT Group