Work with composite data types
Flux composite types are types constructed from basic types. Flux supports the following composite types:
Record
A record type is a set of key-value pairs. Learn how to work with record types in Flux.
{foo: "bar", baz: 123.4, quz: -2}
{"Company Name": "ACME", "Street Address": "123 Main St.", id: 1123445}
Array
An array type is an ordered sequence of values of the same type. Learn how to work with arrays in Flux.
["1st", "2nd", "3rd"]
[1.23, 4.56, 7.89]
[10, 25, -15]
Dictionary
A dictionary type is a collection of key-value pairs with keys of the same type and values of the same type. Learn how to work with dictionaries in Flux.
[0: "Sun", 1: "Mon", 2: "Tue"]
["red": "#FF0000", "green": "#00FF00", "blue": "#0000FF"]
[1.0: {stable: 12, latest: 12}, 1.1: {stable: 3, latest: 15}]
Function
A function type is a set of parameters that perform an operation. Learn how to work with functions in flux.
() => 1
(a, b) => a + b
(a, b, c=2) => {
d = a + b
return d / c
}
Was this page helpful?
Thank you for your feedback!
Support and feedback
Thank you for being part of our community! We welcome and encourage your feedback and bug reports for Flux and this documentation. To find support, use the following resources:
Customers with an annual or support contract can contact InfluxData Support.