Typeset! datatype

1. Abstract

A typeset! value represents a set, or collection, of predefined datatype! values.

Typeset! is a member of the following typesets: default!, immediate!

2. Creation

Typeset! values can be created by using a make constructor or to conversion.

3. Literal syntax

By convention, literal syntax is a word! value ending with an exclamation mark !.

Examples: any-list!, number!, series!

3.1. Runtime creation

<typeset> ::= make typeset! [<typeset-element>*]
<typeset-element> ::= <typeset-name> | <datatype-name>


>> number!: make typeset! [integer! float! percent!]
== make typeset! [integer! float! percent!]

>> collection!: make typeset! [block! paren! map!]
== make typeset! [block! paren! map!]

>> to typeset! [integer! float! percent!]
== make typeset! [integer! float! percent!]

Empty typesets are allowed.

>> empty!: make typeset! []
== make typeset! []

4. Conversions

A typeset! value can be converted to any value of the typeset any-list!

>> to block! number!
== [integer! float! percent!]

>> to paren! number!
== (integer! float! percent!)

>> to hash! number!
== make hash! [integer! float! percent!]

5. Comparisons

No comparisons are supported for typeset!.

6. Data set operations

The following data set operations are possible with typeset! values:

difference, exclude, intersect, union

7. Testing values

Use typeset? to check if a value is of the typeset! datatype.

>> typeset? number!
== true

Use type? to return the datatype of a given value.

>> type? number!
== typeset!

8. Predefined words

8.1. Actions

and~, complement, find, or~, xor~

8.2. Functions


8.3. Natives

difference, exclude, intersect, union

8.4. Operators

and, or, xor

results matching ""

    No results matching ""