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
butfirst, bf

butlast, bl

C / D / E

copy-list

empty?

F
first

fput

G / H / I
item
J / K / L
last

length

list

list?

lput

M

make-list

member?

N / O / P
pick

position

Q / R / S
se, sentence

setitem

T / U / V / W

to-list

word?

X / Y / Z