List

(For a Printable Version Click Here)

Here are a list of commands that affect lists. Note that these commands are only for lists of data. Lists of data are linked data lists, similar to lists in other versions of Logo. Unlike other Logos, however, StarLogo does not enable you to execute lists of data as instructions (that is, there is no run command). You can create a list of data using the list or sentence commands, or by enclosing the literal elements in []'s. No elements inside the []'s are evaluated.

A / B
average-of-list butfirst, bf butlast, bl
C / D / E
copy-list empty?
F
first fput
G / H / I
insert item
J / K / L
last length list list? lput
M
make-list max-of-list median-of-list member? min-of-list mode-of-list member?
N / O / P
pick position
Q / R / S
remove remove-element reverse sdev-of-list se, sentence setitem
T / U / V / W
to-list variance-of-list word?
X / Y / Z