ish.type.symbol

Symbol-based type functionality.

Source:

Methods

ish.type.symbol.exists() → {symbol}

Source:
Determines if the Symbol type is present in the current environment.
Returns:
Type Description
symbol Value representing if the Symbol type is present in the current environment.

ish.type.symbol.get() → {symbol}

Source:
Safely returns a unique symbol, returning a unique object if symbol is not supported.
AKA: ish.type.symbol
Returns:
Type Description
symbol Value representing a unique symbol or object.

ish.type.symbol.is(x) → {symbol}

Source:
Determines if the passed value represents a symbol.
Parameters:
Name Type Description
x variant Value to interrogate.
Returns:
Type Description
symbol Value representing if the passed value represents a symbol.

ish.type.symbol.mk(x, vDefaultValopt) → {symbol}

Source:
Casts the passed value into a symbol.
Parameters:
Name Type Attributes Default Description
x variant Value to interrogate.
vDefaultVal variant <optional>
Symbol() Value representing the default return value if casting fails.
Returns:
Type Description
symbol Value representing the passed value as a symbol type.