17.01.2013 Views

AmstradCPC6128-hypertext-en-Sinewalker

AmstradCPC6128-hypertext-en-Sinewalker

AmstradCPC6128-hypertext-en-Sinewalker

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

count<br />

Outputs the number of elem<strong>en</strong>ts in the input object.<br />

emptyp<br />

?count "six<br />

3<br />

?count [0 1 2 3]<br />

4<br />

Outputs T RUE if the input object is an empty word or an empty list, otherwise<br />

outputs FA LS E.<br />

first<br />

?emptyp "<br />

TRUE<br />

?emptyp []<br />

TRUE<br />

?emptyp [x]<br />

FA LS E<br />

?make "x []<br />

?emptyp :x<br />

TRUE<br />

Outputs the first elem<strong>en</strong>t ofthe input object, removes list's outer brackets.<br />

(put<br />

?first "zebra<br />

z<br />

?first [1 2 3]<br />

1<br />

(firstput) Outputs a new object formed by making the first input object the first<br />

elem<strong>en</strong>t in the second object.<br />

?fput IfS "mi Les<br />

sm; Les<br />

?fput 1 [2 3]<br />

[1 2 3]<br />

Introduction to Logo Chapter 6 Page 9

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!