# NeturalMath Language Definition and Syntax

## Set Data Type

The Set data type represents an arbitrary collection of values. It functions like a mathematical set of values. The set data type is most closely related to the System.Collections.ArrayList in .NET, however, there is no direct equvelent.

The set data type is not implemented in the current version of NetrualMath. It is planned to be implemented in v 0.3.2. Please see

Roadmap for more details.

### Type information

The Set data type will return the

String {'set'} when queried.

:> x = [1,2,3,4]
:> numType = type(x)
:> print numType
'set'

If output, the set data type will return the representation of the set as a sequence of values.

:> x = [1,2,3,4]
:> print x
[1, 2, 3, 4]

### Operations

This section is not complete

### Literals

Literals are entered by keying in a series of one or more values seperated by a comma (',') between square brackets ('[]'). If two square brakets are used with no values, the literal will return the

EmptySet constant. Any other literal data type, or the result of a function call or variable may be placed with the set. In this way, the set is a collection of arbirary data consisting of other values.

:> a = [1, 2, 3, 4] // set consisting of four numeric values
:> b = [-1, 2, sin(3), '4'] // set of two numbers, the result of a function call, and a string
:> c = ['1', '2', 'bob', 'mary'] // set consisting of four strings
:> d = ['earl'] // set consisting of a single string.
:> e = [] // empty set

### Conversions

Numbers exhibit the following behaviors when converted to other types:

This section is not complete

This section is not complete

This section is not complete

This section is not complete

This section is not complete

This section is not complete

### Functions

The following

System Functions consume the Set data type:

This section is not complete

### See Also: