TupleWrangler

com.phasmidsoftware.generic.TupleWrangler
object TupleWrangler

A collection of methods to manipulate tuples.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def inline[A, B, C](t: ((A, B), C)): (A, B, C)

Method to unpack a nested tuple of form ((A, B), C) into a non-nested tuple: (A, B, C). This is particularly useful if zipping for example xs zip ys zip zs.

Method to unpack a nested tuple of form ((A, B), C) into a non-nested tuple: (A, B, C). This is particularly useful if zipping for example xs zip ys zip zs.

Type parameters

A

the underlying type of the first element.

B

the underlying type of the first element.

C

the underlying type of the first element.

Value parameters

t

a nested 2-tuple of form ((A, B), C).

Attributes

Returns

a 3-tuple of form (A, B, C).