the Repeat keyword

let start simple ;-)
The easiest way to do an action repeatidly in Gwion is, ... the repeat keyword!

Basic example

repeat(3)
   <<< "Hello, world!" >>>;

Block example

of course this also works with a block code.

repeat(3) {
   maybe ? "You" : "Me" :=> var string s;
   <<< "Hello, ", s, "!" >>>;
}
built with mdr and mdBook
You'll find the source here, Luke! note: privacy guards may interfere with the playground