WithFilter

final class WithFilter(p: T => Boolean)

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.

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.

class Object
trait Matchable
class Any

Value members

Concrete methods

def flatMap[U](f: T => Try[U]): Try[U]
def foreach[U](f: T => U): Unit
def map[U](f: T => U): Try[U]