pairs

o1.util.nice$.pairs$
object pairs

Provides nicer-named methods for accessing members of pairs.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
pairs.type

Members list

Extensions

Extensions

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

Returns the first member of a pair.

Returns the first member of a pair.

Attributes

inline def second: T2

Returns the first second member of a pair.

Returns the first second member of a pair.

Attributes

extension [T1, T2, Pair <: (T1, T2), Collection <: (Seq)](self: Collection[(T1, T2)])(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.

Attributes

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.

Attributes