Classes
The following classes are available globally.
-
A heterogeneous array which can store values of differing types. The same value can appear repeatedly within an array.
See moreDeclaration
class Array
-
A logical type that can only ever be true or false. Flood provides two Boolean constant values,
See moretrue
andfalse
.Declaration
class Bool
-
A closed interval from a lower bound up to, and including, an upper bound.
See moreDeclaration
class ClosedRange
-
A byte buffer in memory.
Declaration
class Data
-
A heterogeneous dictionary which stores associations between keys of the different types and values of the different types in a collection with no defined ordering. Each value is associated with a unique key, which acts as an identifier for that value within the dictionary. Unlike items in an array, items in a dictionary do not have a specified order. You use a dictionary when you need to look up values based on their identifier, in much the same way that a real-world dictionary is used to look up the definition for a particular word.
See moreDeclaration
class Dictionary
-
Variables of type
See moreDouble
hold fractional numbers and can be used for calculating fractional quantities. Any number of the form X.Y is aDouble
Examples: (1, -2, 35.67, -2.0, 0.5154, …)Declaration
class Double
-
A half-open interval from a lower bound up to, but not including, an upper bound.
See moreDeclaration
class Range
-
A string is a series of characters, such as
See more"Hey mom, there's something in the backroom hope it's not the creatures from above."
or"You used to read me stories as if my dreams were boring."
.Declaration
class String