the first item type
the second item type
Build a pair of value from both values.
Build a tuple2 from javascript array. Compared to Tuple2.ofPair, it checks the length of the array and will return None in case the length isn't two. However the types of the elements aren't checked.
Build a tuple2 from javascript pair. Also see Tuple2.ofArray
Used by the node REPL to display values. Most of the time should be the same as toString()
Two objects are equal if they represent the same value, regardless of whether they are the same object physically in memory.
Extract the first value from the pair
Get a number for that object. Two different values may get the same number, but one value must always get the same number. The formula can impact performance.
Maps the first component of this tuple to a new value.
Maps the second component of this tuple to a new value.
Extract the second value from the pair
Convert the tuple to a javascript array. Compared to Tuple2.toPair, it behaves the same at runtime, the only difference is the typescript type definition.
Convert the tuple to a linked list.
Convert the tuple to a javascript pair. Compared to Tuple2.toArray, it behaves the same at runtime, the only difference is the typescript type definition.
Get a human-friendly string representation of that value.
Convert the tuple to a vector.
Transform this value to another value type. Enables fluent-style programming by chaining calls.
Generated using TypeDoc
Contains a pair of two values, which may or may not have the same type. Compared to the builtin typescript [T,U] type, we get equality semantics and helper functions (like mapping and so on).