Discrete

cats.collections.Discrete
See theDiscrete companion object
trait Discrete[A] extends Serializable

Represent discrete operations that can be performed on A

Attributes

Companion
object
Source
Discrete.scala
Graph
Supertypes
trait Serializable
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def pred(x: A): A

Returns the predecessor of x.

Returns the predecessor of x.

Attributes

Source
Discrete.scala
def succ(x: A): A

Return the successor of x.

Return the successor of x.

Attributes

Source
Discrete.scala

Concrete methods

def adj(x: A, y: A): Boolean

Returns true if x and y are consecutive.

Returns true if x and y are consecutive.

Attributes

Source
Discrete.scala
def inverse: Discrete[A]

Returns the inverse of this discrete (succ and pred are flipped).

Returns the inverse of this discrete (succ and pred are flipped).

Attributes

Source
Discrete.scala