Help Contents / Data Structure Primitives / Queries / TypeOf

TypeOf x

outputs a word representing the type of x. 

Examples: 

	typeof int 1	;Int  ;-) 
	typeof int16 1	;Int16  ;-) 
	typeof int8 1	;Int8  ;-) 
	typeof uint8 1	;UInt8  ;-) 
	typeof 1.1	;Float  ;-) 
	typeof 1i		;Complex  ;-) 
	typeof "abc	;Word  ;-) 
	typeof []		;List  ;-) 
	typeof [1 2 3]	;List  ;-) 
	typeof {1 2 3}	;Array  ;-) 
	typeof intarray 3	;IntArray  ;-) 
	typeof struct [[a int][b int8]]	;Struct  ;-) 


previous: SizeOf	next: ASCII
