pairs

object pairs

Provides nicer-named methods for accessing members of pairs.

class Object
trait Matchable
class Any
pairs.type

Extensions

Extensions

extension [T1, T2](self: (T1, T2))
inline def first: T1

Returns the first member of a pair.

Returns the first member of a pair.

inline def second: T2

Returns the first second member of a pair.

Returns the first second member of a pair.

extension [T1, T2, Pair <: (T1, T2), Collection <: (Seq)](self: Collection[(T1, T2)])
inline def firsts: Seq[T1]

Returns a new collection with the first elements of each pair from this one.

Returns a new collection with the first elements of each pair from this one.

inline def seconds: Seq[T2]

Returns a new collection with the first elements of each pair from this one.

Returns a new collection with the first elements of each pair from this one.