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 more

    Declaration

    class Array
  • A logical type that can only ever be true or false. Flood provides two Boolean constant values, true and false.

    See more

    Declaration

    class Bool
  • A closed interval from a lower bound up to, and including, an upper bound.

    See more

    Declaration

    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 more

    Declaration

    class Dictionary
  • Variables of type Double hold fractional numbers and can be used for calculating fractional quantities. Any number of the form X.Y is a Double Examples: (1, -2, 35.67, -2.0, 0.5154, …)

    See more

    Declaration

    class Double
  • A half-open interval from a lower bound up to, but not including, an upper bound.

    See more

    Declaration

    class Range
  • A string is a series of characters, such as "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.".

    See more

    Declaration

    class String