Skip to main content

Data Types / Collections

Basic Types

Fluency Programming Language supports the following data types.

Primitives

The following tables shows the list of supported primitive types, and corresponding example:

NameTypeDescriptionExample
StringstringGroup of text charactersABCabc
Integerint64Number1
Floatfloat64Number w/ decimals2.0
BooleanboolLogical true/falsetrue
Nullnull
Undefinedundefined

Collections of Primitives

The following tables shows the list of supported collection types, and corresponding example:

NameTypeDescriptionExample
List[]aList of primitives[]string
Mapmap[a]bMap of primitivesmap[string]int64
List (interface)[]interface{}JSON Array[]interface{}
Map (interface)map[string]interface{}JSON Objectmap[string]interface{}

Note: Lists (arrays) are zero-indexed

Objects

The following tables shows the list of supported Object types, and corresponding example:

NameDescriptionExample
TupleList of Data Types or Object Types
MapMap of Data Types or Object Types
TimeA time object w/ current time
ErrorError ObjectSyntaxError
LambdaAnonymous expression(x, y) => {}
FplTableTables
FplMetricMetrics
FplAlertAlerts