clump
also written: fn, function, def
Clumps
Make your own word that does a bunch of things.
How to write it
clump <name>(<boxes>)
<things to do>
unga
clump <name>() ugg no boxes
clump <name>(a, b, c) ugg many boxes
What it does
A clump is a bunch of code with a name. Run it any time by writing its name with parentheses.
The names in parentheses become boxes filled with whatever you pass in. Use ork to give an answer back.
Example
clump yell(word)
oga shout(word), "!!!"
unga
yell("hello")
yell("booga")
Tips
- Make a clump before you use it (the computer reads top to bottom).
- A clump with an
orkgives something back:grunk x = double(4) - A clump that uses itself is called recursion -- powerful and fun.