Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

@rep

The @rep keyword reads or writes the repetitions attribute.

Forms

  • @rep reads the current repetitions value.
  • <@rep> also reads the current repetitions value.
  • <@rep = expr> writes the current attribute frame.
  • @rep expr: { ... } applies a repetition value to the block that follows immediately.

@rep accepts the same values as [rep]: nonnegative integers or the repetition mode strings "once", "all", and "forever".

@rep 3: {x}
xxx

The accessor form is specialized syntax. Globals, descoping, fallbacks, and compound assignment are not supported.