Skip to content

mo

In a gopheta header, takes each item of a list in turn.

Use gopheta (metlha ntlha mo lenaneo) when you want the items themselves rather than their index numbers. The loop takes its length from the list, so there is no counter to declare and increment, and no way to run off the end.

mo acts as a keyword only inside a gopheta header. Anywhere else it is left alone: you cannot use it as a variable name, and sengwe.mo stays untranslated.

gopheta (metlha ntlha mo lenaneo) { ... }
Draw a circle for each size in the list
tiro setaLoeto() {
  thalaKanefase(400, 200);
  bokamorago(220);
  metlha magolo = [30, 55, 80, 105, 130];
  tlatsaMmala(0, 140, 120);
  diri x = 45;
  gopheta (metlha bogolo mo magolo) {
    kgolokwe(x, 100, bogolo);
    x = x + 78;
  }
}

gopheta, nako, metlha