Amstrad DDI-1 Computer Drive User Manual


 
4.10.1 WORD AND LIST PROCESSING:
(Note that prompts ? and > are shown in the following examples)
ascii
Outputs the ASCII value of the first character in the input word.
?ascii "G
71
?ascii "g
103
bf
(but first) Outputs all but the first element in the input object.
?bf "smiles
miles
?bf [l 2 3]
[2 3]
bl
(but last) Outputs all but the last element in the input object.
?bl "smiles
smile
?bl [l 2 3 4]
[l 2 3]
char
Outputs the character whose ASCII value is the input number.
?char 83
S
count
Outputs the number of elements in the input object.
?count "six
3
?count [0 1 2 3]
4
AMSTRAD Disc Drive & Interface DDI-1 Manual Chapter 4.6