iskeyword method

Keyword iskeyword (Node n)

Returns true if a value is a keyword, false otherwise.

Parameters: value - a value or variable being evaluated. Returns: true if value is a keyword, false otherwise. Example: iskeyword(#ff0); // false iskeyword(keyword); // true

Implementation

Keyword iskeyword(Node n) =>
    (n is Keyword) ? Keyword.True() : Keyword.False();