type
From the SETL Wiki
| type | |
|---|---|
| Category | general |
| Syntax | prefix |
| Compatibility | |
| CIMS SETL | yes |
| SETL-S | yes |
| SETL2 | yes |
| GNU SETL | yes |
Contents |
Purpose
Determine the type of any SETL value
Synopsis
type x
Description
Returns one of the following predefined strings depending on the primary type of x: 'ATOM', 'BOOLEAN', 'INTEGER', 'REAL', 'SET', 'STRING', 'TUPLE'
GNU SETL and SETL2 may also return 'PROCEDURE'.
SETL2 may also return the name of a user-defined class.
Examples
-
type 42
Result:
'INTEGER' -
type '42'
Result:
'STRING'


