StarLogo Vocabulary: List


= used for the observer,
= used for turtles,
= used for patches


_____________________________________________________________
butfirst, bf
list

Reports the value of list with its first element removed.
_____________________________________________________________
butlast, bl
list

Reports the value of list with its last element removed.
_____________________________________________________________
empty?
list

Reports true if list is the empty list; false otherwise.
_____________________________________________________________
first
list

Reports the first element of list.
_____________________________________________________________
fput
item list
(first put)

Reports the value of list with item inserted as its first element.
_____________________________________________________________
item
item-number list

Reports item item-number of list. Note that numbering of list items starts at 0, not 1.
_____________________________________________________________
last
list

Reports the last item of list.
_____________________________________________________________
length
list

Reports the length of list.
_____________________________________________________________
list
item1 item2

Reports a new list with item1 as its first element, item2 as its second element.
_____________________________________________________________
list?
thing

Reports true if thing is a list; false otherwise.
_____________________________________________________________
lput
item list
(last put)

Reports the value of list with item inserted as its last element.
_____________________________________________________________
member?
item list

Reports true if item is an element of list; false otherwise.
_____________________________________________________________
position
item list

Reports the first position of item in the list; if item is not in
the list, reports false.
_____________________________________________________________
sentence, se
list1 list2

Reports a new list composed of elements of list1 and the elements of list2.
================================================================