setTokensWhile

fun setTokensWhile(tokens: A_Tuple, action: () -> Unit)

Capture an A_Tuple of A_Tokens for the duration of execution of the action]. If the tuple of tokens is empty, just evaluate the action.

Parameters

tokens

The tokens to make available during the application of the supplied action.

action

An arbitrary action.