Int16P

HC Data Structure Primitives Predicates Int16P
IntP Int8P

Int16P thing
Int16? thing


outputs TRUE if the input is a 16 bit integer, FALSE otherwise.

Examples:

int16? int16 1234	;true  ;-)
int16? 1234	;false  ;-)
int16? 1.2	;false  ;-)
int16? Int16Max	;true  ;-)
int16? Int16 1.2	;true  ;-)
int16? [1]	;false  ;-)
int16? {1}	;false  ;-)
int16? "1	;false  ;-)
int16? Int16 "1	;true  ;-)

IntP Int8P