Repeat Through a Rulebook
version 4 by Ron Newcomb
Version 4 of Repeat Through a Rulebook by Ron Newcomb begins here.
"Allows us to write a repeat loop that steps through all the rules in a rulebook, to count those rules, to pick a random rule, and to ask if a rule is currently listed in a given rulebook."
Use Repeat Through a Rulebook debugging translates as (- Constant LOOP_THRU_RULEBOOKS; -).
Use Repeat Through a Rulebook count debugging translates as (- Constant LOOP_THRU_RULEBOOKS_C; -).
Use Repeat Through a Rulebook find debugging translates as (- Constant LOOP_THRU_RULEBOOKS_F; -).
Use Repeat Through a Rulebook endpoint debugging translates as (- Constant LOOP_THRU_RULEBOOKS_E; -).