Amstrad DDI-1 Computer Drive User Manual


 
emptyp
Outputs TRUE if the input object is an empty word or an empty list; otherwise outputs
FALSE.
?emptyp "
TRUE
?emptyp []
TRUE
?emptyp [x]
FALSE
?make "x []
?emptyp :x
TRUE
first
Outputs the first element of the input object.
?first "zebra
z
?first [1 2 3]
1
fput
(firstput) Outputs a new object formed by making the first input object the first
element in the second object.
?fput "s "milessmiles
smilessmiles
?fput 1 [2 3]
[1 2 3]
item
Outputs the specified element of the input object.
?item 4 "dwarf
r
list
Outputs a list made up of the input objects, retains lists' outer brackets (compare with s
e).
?(list 1 2 3 4)
[l 2 3 4]
?List "big [feet]
[big [feet]]
?(list)
[]
Chapter 4.7 AMSTRAD Disc Drive & Interface DDI-1 Manual