Tilde

com.phasmidsoftware.matchers.Tilde
object Tilde

Companion object to ~ (although the name had to be changed).

Attributes

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

Members list

Value members

Concrete methods

def apply[L, R](l: L, r: R): L ~ R

Create a ~ from two values.

Create a ~ from two values.

Type parameters

L

the type of l.

R

the type of r.

Value parameters

l

the left-hand value.

r

the right-hand value.

Attributes

Returns

a new L ~ R

def apply[L, R](t: (L, R)): L ~ R

Create a ~ from an (L, R) tuple.

Create a ~ from an (L, R) tuple.

Type parameters

L

the type of the first member of the input.

R

the type of r the second member of the input.

Value parameters

t

a tuple (L, R).

Attributes

Returns

a new L ~ R