Failure
- Source:
- Try.scala
Type members
Value members
Inherited methods
An iterator over the names of all the elements of this product.
An iterator over the names of all the elements of this product.
- Inherited from:
- Product
- Source:
- Product.scala
An iterator over all the elements of this product.
An iterator over all the elements of this product.
- Returns:
in the default implementation, an
Iterator[Any]
- Inherited from:
- Product
- Source:
- Product.scala
Creates a non-strict filter, which eventually converts this to a Failure
if the predicate is not satisfied.
Creates a non-strict filter, which eventually converts this to a Failure
if the predicate is not satisfied.
Note: unlike filter, withFilter does not create a new Try.
Instead, it restricts the domain of subsequent
map
, flatMap
, foreach
, and withFilter
operations.
As Try is a one-element collection, this may be a bit overkill, but it's consistent with withFilter on Option and the other collections.