Prelude
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).