Function that throws its argument.
a string or an Error
.
Assert that the call in the argument cannot return.
Check that the supplied {@link Row} is of the desired Type, returning it as that type, or throwing an exception if it is not.
The {@link Row} to check
Check that the supplied {@link Row} is of the specified Type
The {@link Row} to check
the Type the row should be.
Construct a family of type functions: a type guard, a coersion, and a checked cast.
A class constructor
an optional coercion function to be tried in the to* (coercion) variant
Format a number as a percentage.
Format a number as
0 or 2 (default = 2) positions for cents
Format a number as US currency.
a number as US currency
0 or 2 (default = 2) positions for cents
Given a Heap
, give a generator to the (sorted) values in the heap.
Simple type-aware identity function.
a
Produce an index to a list of {@link Named objects.
A list of Named objects
An index of the objects by name.
Type guard to determine if the argument has a monetary .value
field.
Higher-order function, that creates summing functions.
a function that takes an item and returns a number.
a function that validates that the result is of type V
.
a function that takes a list of items and returns the sum of the values returned by applying f.
Get the total value of a list of monetary items.
a list of IMonetaryItem items.
Construct a family of type functions: a type guard, a coersion, and a checked cast.
A type guard.
A string for error messages, when the type guard fails
an optional coercion function to be tried in the to* (coercion) variant
Returns the unique values, as compared by ===
a list of strings or other values to be compared by ===
Generated using TypeDoc
General utilities, without runtime dependencies on other parts of the system.