Augmentations for arrays and tuple literals.
This module's augmentations can be applied by using the following import:
import "@neotype/extensions/array.js"; Copy
import "@neotype/extensions/array.js";
Arrays and tuple literals have the following behavior as an equivalence relation:
Array<T>
ReadonlyArray<T>
Eq
T
Arrays and tuple literals have the following behavior as a total order:
Ord
Arrays have the following behavior as a semigroup:
Tuple literals are not a semigroup.
Generated using TypeDoc
Augmentations for arrays and tuple literals.
Remarks
Importing this module
This module's augmentations can be applied by using the following import:
Comparing arrays and tuple literals
Arrays and tuple literals have the following behavior as an equivalence relation:
Array<T>or aReadonlyArray<T>implementsEqwhenTimplementsEq.Eqwhen each of its elements implementsEq.Arrays and tuple literals have the following behavior as a total order:
Array<T>or aReadonlyArray<T>implementsOrdwhenTimplementsOrd.Eqwhen each of its elements implementsEq.Combining arrays as a semigroup
Arrays have the following behavior as a semigroup:
Tuple literals are not a semigroup.