CMC logo Cave Man Code

zoop

also written: for

Loops

Do something once for each thing in a pile or text.

How to write it

zoop <name> in <pile or text>
    <things to do>
unga

What it does

zoop walks through a pile (or the letters of a text) one item at a time. The box you name holds the item for that lap.

Example

grunk pets = snorf("dog", "cat", "rock")

zoop pet in pets
    oga "I love my", pet
unga

Tips

See also

snorf · booga · zug

Back to all words