-
Notifications
You must be signed in to change notification settings - Fork 3
Patterns
tiatomee edited this page Feb 16, 2021
·
1 revision
extern debug_print_int(x: int)
record Value(val: int)
gene [0 Value]
{
express Value(val: 0)
express Value(val: 1)
express Value(val: 2)
express Value(val: 3)
express Value(val: 4)
}
gene [x: Value]
{
call debug_print_int(x: x.val)
}
Because one gene can only run once per iteration, the second gene will be executed with a random Value
from the ones available in the environment.