Atom

type()

Reports the runtime type descriptor.

Signature

type(value)

Parameters

Any value.

Returns

A built-in descriptor value, including the stored width for a numeric value.

Behavior

Reads the value. Use type(type(value)) for the descriptor's own type.

Errors

Incorrect arity.

Example

Atom
assert(type('A') == char and type('Atom') == string)