Predicate

com.phasmidsoftware.lascala.predicate.Predicate
See thePredicate companion trait
object Predicate

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Predicate.type

Members list

Value members

Concrete methods

def apply[T](p: T => Try[Boolean]): Predicate[T]

Given a predicate function p which transforms a T into a Try[Boolean], construct a new Predicate[T]

Given a predicate function p which transforms a T into a Try[Boolean], construct a new Predicate[T]

Type parameters

T

the underlying type of the predicate function and the resulting Predicate

Value parameters

p

the predicate function

Attributes

Returns

a new BasePredicate

Implicits