Basic module

IsScalar

procedureSource

Whether T is a number, pointer or enum, the types min, max and clamp accept.

IsScalar :: (T: Type) -> bool

Parameters

T: Type

Returns

bool
Example↗
assert(IsScalar(int) && IsScalar(*u8));
assert(!IsScalar(string));

See also