Prelude
Modules
| Adaptor | Functions for converting between Flix and Java values and collections. |
| Array | Type of mutable fixed-length arrays, and its functions. |
| BigDecimal | Type of arbitrary-precision signed decimal numbers, and its functions. |
| BigInt | Type of arbitrary-precision signed integers, and its functions. |
| Bool | Type of boolean values, and its functions. |
| Channel | Functions for message passing over channels. |
| Char | Type of 16-bit Unicode characters, and its functions. |
| CodePoint | Functions for working with Unicode code points. |
| Concurrent | Modules for concurrent programming. |
| Fixpoint3 | Functions for solving Datalog programs. |
| Float32 | Type of 32-bit floating-point numbers, and its functions. |
| Float64 | Type of 64-bit floating-point numbers, and its functions. |
| Fs | Modules for interacting with the file system. |
| Graph | A library of functions that operates on graphs, represented as foldable collections of either pairs or triples, for unweighted and weighted graphs respectively. These pairs, or triples, represent directed edges while nodes(vertices) are given implicitly. |
| Int16 | Type of 16-bit signed integers, and its functions. |
| Int32 | Type of 32-bit signed integers, and its functions. |
| Int64 | Type of 64-bit signed integers, and its functions. |
| Int8 | Type of 8-bit signed integers, and its functions. |
| Math | Modules for mathematical utilities. |
| Net | Modules for networking. |
| Object | Functions for working with Java objects and `null` values. |
| Reflect | Functions for reflecting on the runtime representation of values and types. |
| Regex | Type of compiled regular expressions, and its functions. |
| String | Type of immutable strings, and its functions. |
| Sys | Modules for interacting with the operating system. |
| Time | Modules for working with time. |
| Util | Modules for general-purpose utilities. |
| Vector | Type of immutable arrays, and its functions. |
Traits
| Add | Trait for types that support addition. |
| Applicative | Trait for types that support embedding values and applying embedded functions. |
| Box | A trait for primitive types that can be boxed and unboxed. |
| Coerce | Trait for types that can be coerced. |
| Collectable | Trait for types that can be collected from an iterator. |
| CommutativeGroup | Trait for types that form a commutative group. |
| CommutativeMonoid | Trait for types that form a commutative monoid. |
| CommutativeSemiGroup | Trait for types that form a commutative semigroup. |
| Discrete | Trait for types that form a discrete sequence. |
| Div | Trait for types that support division. |
| Eq | Trait for types that support equality and inequality. |
| Filterable | Trait for types that support filtering. |
| Foldable | Trait for types that can be folded. |
| ForEach | Trait for types that support iterating over their elements with `forEach`. |
| Formattable | Trait for types that can be formatted as a `RichString`. |
| FromString | Trait for types that can be constructed from strings. |
| Functor | Trait for types that can be mapped over. |
| Group | Trait for types that form a group. |
| Hash | Trait for types that can be hashed. |
| Indexable | Trait for types that map indices to elements. |
| IndexableMut | Trait for types that map indices to elements and can be modified. |
| Iterable | Trait for types that can be iterated. |
| JoinLattice | Trait for types that form a join semi-lattice. |
| LowerBound | Trait for types that are partially ordered and have a lower bound. |
| MeetLattice | Trait for types that form a meet semi-lattice. |
| Monad | Trait for types that support monadic bind (`flatMap`). |
| MonadZero | Trait for types that are monads with a zero element. |
| MonadZip | Trait for types that are monads that support zipping. |
| Monoid | Trait for types that form a monoid. |
| Mul | Trait for types that support multiplication. |
| Neg | Trait for types that support negation. |
| Order | Trait for types that have a total order. |
| PartialOrder | Trait for types that have a partial order. |
| Peekable | Trait for types that can be read from with lookahead. |
| Readable | Trait for types that can be read from. |
| Reducible | Trait for types that can be reduced to a summary value. |
| SemiGroup | Trait for types that form a semigroup. |
| Sub | Trait for types that support subtraction. |
| ToFlix | Trait for types that can be marshaled to Flix values. |
| ToJava | Trait for types that can be marshaled to Java objects. |
| ToString | Trait for types that can be converted to strings. |
| Traversable | Trait for types that can be traversed from left to right with an applicative functor. |
| UnorderedFoldable | Trait for types that can be folded without regard to order. |
| UpperBound | Trait for types that are partially ordered and have an upper bound. |
| Witherable | Trait for types that can be traversed from left to right with an applicative functor while filtering elements. |
| Writable | Trait for types that can be written to. |
Effects
| Abort | Effect for aborting a computation with an error message. |
| Assert | Effect for performing assertions during program execution. |
| Chan | Effect for operations on channels in the global region. |
| Debug | An effect used for print debugging. |
| IO | Effect for actions not described by any other effect. |
| KeyNotFound | Effect for signaling that a key was not found. |
| Logger | Effect for logging messages. |
| NonDet | Effect for non-deterministic actions. |
| OutOfBounds | Effect for signaling that an index is out of bounds. |
Enums
| Chain | Type of immutable sequences with efficient append. |
| CharacterSet | Type of character sets for encoding and decoding text. |
| Comparison | Type of comparison results. |
| DelayList | Type of lazy lists. |
| DelayMap | Type of immutable maps with lazily evaluated values. |
| Down | Type of values with reversed ordering. |
| EncodingWriter | Type of writers that encode chars into bytes. |
| Identity | Type of values in the identity functor and monad. |
| IoError | Type of errors that can occur when performing I/O operations involving the file system. |
| Iterator | Type of lazy iterators scoped to a region. |
| List | Type of immutable singly-linked lists. |
| Map | Type of immutable maps. |
| MultiMap | Type of immutable maps that allow multiple values per key. |
| Nec | Type of non-empty chains. |
| Nel | Type of non-empty immutable lists. |
| Option | Type of optional values. |
| Proxy | Type of proxies that carry type information where a witness is not available. |
| ProxyBool | Type of proxies that carry type-level Boolean information where a witness is not available. |
| ProxyEff | Type of proxies that carry effect information where a witness is not available. |
| Purity | Type of unary functions tagged as either pure or impure. |
| Purity2 | Type of curried binary functions tagged as either pure or impure. |
| Purity3 | Type of curried ternary functions tagged as either pure or impure. |
| Range | Type of half-open ranges of discrete values. |
| RedBlackTree | Type of immutable red-black trees. |
| Result | Type of results that are either a successful value or an error value. |
| RichString | Type of rich strings composed of styled text spans. |
| Set | Type of immutable ordered sets. |
| StringBuilder | Type of mutable string builders. |
| Validation | Type of validation results that are either a successful value or a non-empty collection of errors. |
Structs
| BPlusTree | Type of mutable concurrent B+ trees. |
| BufReader | Type of buffered readers. |
| DecodingReader | Type of readers that decode bytes into chars. |
| MutDeque | Type of mutable double-ended queues. |
| MutDisjointSets | Type of mutable disjoint sets (union-find). |
| MutHashMap | Type of mutable hash maps that preserve insertion order. |
| MutHashSet | Type of mutable hash sets that preserve insertion order. |
| MutList | Type of mutable lists backed by resizable arrays. |
| MutMap | Type of mutable maps. |
| MutPriorityQueue | Type of mutable priority queues. |
| MutSet | Type of mutable sets. |
| Ref | Represents a mutable reference to a value of type `a` in region `r`. |
Type Aliases
Definitions
Pipes the given value x into the function f.
Given a value x and a function f returns x.
Forwards function composition. Applies the function on the left first.
Given the functions f: a -> b and g: b -> c returns a function a -> c
The identity function, automatically casting to the required effect.
Returns the function f with input arguments swapped.
That is, given the function f: (a, b) -> c, returns a function (b, a) -> c
Throws an IndexOutOfBoundsException with the given message m.
Partially applying this function in the form f `on` g lifts the binary function f to work on
inputs transformed by g.
Converts x to a string and prints it to standard out followed by a new line.
Returns Purity.Pure(g) if f has no effects.
Returns Purity.Impure(g) otherwise.
The function g can then be used in a context that requires
it to be pure.
Returns Purity2.Pure(g) if f has no effects.
Returns Purity2.Impure(g) otherwise.
The function g can then be used in a context that requires
it to be pure.
Returns Purity3.Pure(g) if f has no effects.
Returns Purity3.Impure(g) otherwise.
The function g can then be used in a context that requires
it to be pure.
Returns the pair p with the components swapped.
That is, returns (y, x) if p = (x, y).
def |+|(x: a, y: a): a with CommutativeSemiGroup[a]§ SourceAlias for CommutativeSemiGroup.combine.
Pipes the given value x into the function f.
Given a value x and a function f returns f(x).