Priority

algebra.Priority
See thePriority companion object
sealed trait Priority[+P, +F]

Priority is a type class for prioritized implicit search.

This type class will attempt to provide an implicit instance of P (the preferred type). If that type is not available it will fallback to F (the fallback type). If neither type is available then a Priority[P, F] instance will not be available.

This type can be useful for problems where multiple algorithms can be used, depending on the type classes available.

Attributes

Companion
object
Source
Priority.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Fallback[F]
class Preferred[P]

Members list

Value members

Concrete methods

def bimap[P2, F2](f1: P => P2)(f2: F => F2): Priority[P2, F2]

Attributes

Source
Priority.scala
def fold[B](f1: P => B)(f2: F => B): B

Attributes

Source
Priority.scala

Attributes

Source
Priority.scala

Attributes

Source
Priority.scala

Attributes

Source
Priority.scala

Attributes

Source
Priority.scala
def join[U >: P & F]: U

Attributes

Source
Priority.scala
def toEither: Either[P, F]

Attributes

Source
Priority.scala