WithFilter

scala.util.Try.WithFilter
final class WithFilter(p: Try.this.T => Boolean) uses Try.this

We need a whole WithFilter class to honor the "doesn't create a new collection" contract even though it seems unlikely to matter much in a collection with max size 1.

Value parameters

p

the predicate used to test elements

Attributes

Source
Try.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def flatMap[U](f: Try.this.T => Try[U]^): Try[U]^{Try.this, p.only[Control], f}

Attributes

Source
Try.scala
def foreach[U](f: Try.this.T => U): Unit

Attributes

Source
Try.scala
def map[U](f: Try.this.T => U): Try[U]^{Try.this, p.only[Control], f.only[Control]}

Attributes

Source
Try.scala
def withFilter(q: Try.this.T => Boolean): Try.this.WithFilter^{Try.this, p, q}

Attributes

Source
Try.scala