Put Tokens {R}←{X} ⎕TPUT Y

Y must be a simple integer scalar or vector of non-zero token types.

X is an optional array of values to be stored in each of the tokens specified by Y.

Shy result R is a vector of thread numbers (if any) unblocked by the ⎕TPUT.

Examples

    ⎕TPUT 2 3 2     ⍝ put a 2-token, a 3-token and another
                      2-token into the pool.
 
    88 ⎕TPUT 2      ⍝ put another 2-token into the pool
                      this token has the value 88.
 
    'Hello'⎕TPUT ¯4 ⍝ put a ¯4-token into the pool with
                      the value 'Hello'.

If X is omitted, the value associated with each of the tokens added to the pool is the same as its type.

Note that you cannot put a 0-token into the pool; 0-s are removed from Y.