flags

flags, function

def const pure flags(...n: number): flagset

Returns a 64-set containing all the integer values provided in n.

Examples

show table "Flags" with
  text(flags(0, 2, 5)) as "Set"
  popCount(flags(0, 2, 5)) as "Count"

Output:

Set Count
{0,2,5} 3

Errors

Each value in n must be an integer in the range [0..63].

See also

User Contributed Notes
0 notes + add a note