Count; Emptyp; First; Fput - AMSTRAD cpc 6128 User Instruction

Integrated computer/disc system
Hide thumbs Also See for cpc 6128:
Table of Contents

Advertisement

count
Outputs the number of elements in the input object.
?count "six
3
?count [0 1 2 3]
4
emptyp
Outputs T RUE if the input object is an empty word or an empty list, otherwise
outputs FA LS E.
first
?emptyp "
TRUE
?emptyp []
TRUE
?emptyp [x]
FA LS E
?make "x []
?emptyp :x
TRUE
Outputs the first element ofthe input object, removes list's outer brackets.
(put
?first "zebra
z
?first [1 2 3]
1
(firstput) Outputs a new object formed by making the first input object the first
element in the second object.
?fput
IfS
"mi Les
sm; Les
?fput 1 [2 3]
[1 2 3]
Introduction to Logo
Chapter 6 Page 9

Advertisement

Table of Contents
loading

Table of Contents

Save PDF