type_of(1.0001) # numeric
type_of(1.0) # integer (`typeof` returns numeric)
type_of(1) # integer (`typeof` returns numeric)
type_of(sum) # closure (`typeof` returns builtin)
type_of(`$`) # closure (`typeof` returns special)
type_alike(1L, 1)
type_alike(1L, 1.1)
type_alike(integer(), numeric(100))
type_alike(integer(), numeric(101)) # too long
Run the code above in your browser using DataLab