trait TravValidatable[G, TRAVONCE[e] <: GenTraversableOnce[e]] extends AnyRef
Adds a validatedBy method to GenTraversableOnce via an implicit conversion provided by
trait Accumulation.
For more information and examples, see the Using validatedBy section of
the main documentation for class Or.
- Source
- Accumulation.scala
- Alphabetic
- By Inheritance
- TravValidatable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def validatedBy[H, ERR, EVERY[e] <: Every[e]](fn: (G) => Or[H, EVERY[ERR]])(implicit cbf: CanBuildFrom[TRAVONCE[G], H, TRAVONCE[H]]): Or[TRAVONCE[H], Every[ERR]]
Maps a
GenTraversableOnceofGs intoOrs of typeHOrEVERY[ERR](whereEVERYis some subtype ofEvery) using the passed functionfn, then combines the resultingOrs into a singleOrof typeCOLL[H]OrEvery[ERR].Maps a
GenTraversableOnceofGs intoOrs of typeHOrEVERY[ERR](whereEVERYis some subtype ofEvery) using the passed functionfn, then combines the resultingOrs into a singleOrof typeCOLL[H]OrEvery[ERR].Note: this process implemented by this method is sometimes called a “traverse.”
For more information and examples, see the Using
validatedBysection of the main documentation for classOr.
