Iput; Memberp; Numberp; Piece - AMSTRAD cpc 6128 User Instruction

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

Advertisement

*
Iput
(lastput) Outputs a new object formed by making the first input object the last
element in the second input object.
*
?Lput "s "pLuraL
pLuraLs
?Lput "s [pLuraL]
[pLuraL s]
memberp
Outputs T RUE ifthe first input object is an element of the second input object.
*
?memberp "y "onLy
TRUE
?memberp "chocoLate [[vani LLa][chocoLate][strawberry]]
FA LS E
?memberp [chocoLate] [[vani LLa][chocoLate][strawberry]]
TRUE
numberp
Outputs T RUE ifthe input object is a number.
*
?numberp 374.926
TRUE
?numberp "six
FALSE
?numberp first [2 4 6 8]
TRUE
piece
Outputs an object that contains the specified elements ofthe input object.
?piece 4 7 "Kensington
sing
?piece 2 4 [Nana John MichaeL Wendy TinkerbeLL]
[John MichaeL Wendy]
Introduction to Logo
Chapter 6 Page 11

Advertisement

Table of Contents
loading

Table of Contents

Save PDF