~

com.phasmidsoftware.matchers.~
case class ~[+L, +R](l: L, r: R)

The tilde class which is basically a Tuple (i.e., Product) with a few extra methods.

Type parameters

L

the left type.

R

the right type.

Value parameters

l

the left value.

r

the right value.

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def asTuple: (L, R)

Convert to tuple form.

Convert to tuple form.

NOTE: unused.

Attributes

Returns

a (L, R).

def flip: R ~ L

Reverse the order of this ~.

Reverse the order of this ~.

Attributes

Returns

~(r, l)

override def toString: String

Returns a string representation of this instance.

Returns a string representation of this instance.

Attributes

Returns

the string representation combining the left and right values with a tilde (~) in between.

Definition Classes
Any

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product