tupelo.types

Type conversion and detection.

boolean-array?

(boolean-array? arg)
Returns true is the arg is a boolean array, else false.

byte-array?

(byte-array? arg)
Returns true is the arg is a byte array, else false.

byte?

(byte? arg)
Returns true is the arg is a Byte, else false.

BYTE_UNSIGNED_MAX_VALUE

BYTE_UNSIGNED_MIN_VALUE

char-array?

(char-array? arg)
Returns true is the arg is a char array, else false.

character?

(character? arg)
Returns true is the arg is a Character, else false.

double-array?

(double-array? arg)
Returns true is the arg is a double array, else false.

double?

(double? arg)
Returns true is the arg is a Double, else false.

float-array?

(float-array? arg)
Returns true is the arg is a float array, else false.

float?

(float? arg)
Returns true is the arg is a Float, else false.

int-array?

(int-array? arg)
Returns true is the arg is a int array, else false.

integer?

(integer? arg)
Returns true is the arg is a Integer, else false.

INTEGER_UNSIGNED_MAX_VALUE

INTEGER_UNSIGNED_MIN_VALUE

long-array?

(long-array? arg)
Returns true is the arg is a long array, else false.

long?

(long? arg)
Returns true is the arg is a Long, else false.

LONG_UNSIGNED_MAX_VALUE

LONG_UNSIGNED_MIN_VALUE

object-array?

(object-array? arg)
Returns true is the arg is a object array, else false.

short-array?

(short-array? arg)
Returns true is the arg is a short array, else false.

short?

(short? arg)
Returns true is the arg is a Short, else false.

SHORT_UNSIGNED_MAX_VALUE

SHORT_UNSIGNED_MIN_VALUE

within-bounds-byte-unsigned?

(within-bounds-byte-unsigned? val)
Inputs: [val :- s/Int]
Returns: s/Bool

Returns true if val fits within legal range for a byte (unsigned).

within-bounds-byte?

(within-bounds-byte? val)
Inputs: [val :- s/Int]
Returns: s/Bool

Returns true if val fits within legal range for a byte (signed).

within-bounds-integer-unsigned?

(within-bounds-integer-unsigned? val)
Inputs: [val :- s/Int]
Returns: s/Bool

Returns true if val fits within legal range for a integer (unsigned).

within-bounds-integer?

(within-bounds-integer? val)
Inputs: [val :- s/Int]
Returns: s/Bool

Returns true if val fits within legal range for a integer (signed).

within-bounds-long-unsigned?

(within-bounds-long-unsigned? val)
Inputs: [val :- s/Int]
Returns: s/Bool

Returns true if val fits within legal range for a long (unsigned).

within-bounds-long?

(within-bounds-long? val)
Inputs: [val :- s/Int]
Returns: s/Bool

Returns true if val fits within legal range for a long (signed).

within-bounds-short-unsigned?

(within-bounds-short-unsigned? val)
Inputs: [val :- s/Int]
Returns: s/Bool

Returns true if val fits within legal range for a short (unsigned).

within-bounds-short?

(within-bounds-short? val)
Inputs: [val :- s/Int]
Returns: s/Bool

Returns true if val fits within legal range for a short (signed).