CMC logo Cave Man Code

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

See also

ork · unga · grunk

Back to all words