function chunk {?list}
(pick (+ 7 (random -2 2)) ?list)
end
Out of curiosity, why do you adopt S-expressions only partially in the language
syntax?
Cheers,Telmo.
For style, and clarity Telmo -- and so we don't get bored. Visually, the above
format is easier to parse.
We call S-Expressions "forms". To invoke any function you need a form. But
certain definitions like module or function definitions can be made as
statements (see above) and not forms.
Note that these statements can also be written as forms. We could just as
easily write
(function chunk {?list} (pick (+ 7 (random -2 2)) ?list))
which would be also recognized by the evaluator as a valid expression.
Also note that forms, surrounded by parentheses ( ), are different from
lists,which are surrounded by braces { }.
Cheers,
Michael. / ~ PM
-------------------------------------------
AGI
Archives: https://www.listbox.com/member/archive/303/=now
RSS Feed: https://www.listbox.com/member/archive/rss/303/21088071-f452e424
Modify Your Subscription:
https://www.listbox.com/member/?member_id=21088071&id_secret=21088071-58d57657
Powered by Listbox: http://www.listbox.com