Constructors
constructor
- new Pair<out A, out B>(fst, snd): Pair<A, B>
-
Returns Pair<A, B>
Accessors
val
- get val(): [A, B]
-
Returns [A, B]
Methods
[cmb]
- [cmb]<A, B>(this, that): Pair<A, B>
-
Returns Pair<A, B>
[cmp]
- [cmp]<A, B>(this, that): Ordering
-
Type Parameters
-
A extends Ord<A>
-
B extends Ord<B>
[eq]
- [eq]<A, B>(this, that): boolean
-
Type Parameters
-
A extends Eq<A>
-
B extends Eq<B>
Returns boolean
lmap
- lmap<A1>(f): Pair<A1, B>
-
Returns Pair<A1, B>
map
- map<B1>(f): Pair<A, B1>
-
Returns Pair<A, B1>
unwrap
- unwrap<T>(f): T
-
Returns T
Static
fromTuple
- fromTuple<A, B>(tuple): Pair<A, B>
-
Returns Pair<A, B>
A pair of values.