TravValidatable

trait TravValidatable[G, TRAVONCE <: (IterableOnce)]

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
class Object
trait Matchable
class Any

Value members

Abstract methods

def validatedBy[H, ERR, EVERY <: (Every)](fn: G => Or[H, EVERY[ERR]])(implicit cbf: BuildFrom[TRAVONCE[G], H, TRAVONCE[H]]): Or[TRAVONCE[H], Every[ERR]]

Maps a GenTraversableOnce of Gs into Ors of type H Or EVERY[ERR] (where EVERY is some subtype of Every) using the passed function fn, then combines the resulting Ors into a single Or of type COLL[H] Or Every[ERR].

Maps a GenTraversableOnce of Gs into Ors of type H Or EVERY[ERR] (where EVERY is some subtype of Every) using the passed function fn, then combines the resulting Ors into a single Or of type COLL[H] Or Every[ERR].

Note: this process implemented by this method is sometimes called a “traverse.”

For more information and examples, see the Using validatedBy section of the main documentation for class Or.

Source:
Accumulation.scala