@rimbu/base
Version:
Utilities to implement Rimbu collections
17 lines (16 loc) • 515 B
text/typescript
/**
* Returns the first element of a 2-tuple.
* @typeparam K - the first element type
* @typeparam V - the second element type
* @param entry - the tuple
* @returns the first element
*/
export declare function first<K, V>(entry: readonly [K, V]): K;
/**
* Returns the second element of a 2-tuple.
* @typeparam K - the first element type
* @typeparam V - the second element type
* @param entry - the tuple
* @returns the second element
*/
export declare function second<K, V>(entry: readonly [K, V]): V;