TravValidatable

org.scalactic.Accumulation.TravValidatable
trait TravValidatable[G, ITRONCE <: (IterableOnce)]

Adds a validatedBy method to IterableOnce 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.

Attributes

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

Members list

Value members

Abstract methods

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

Maps a IterableOnce 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 IterableOnce 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.

Attributes

Source
Accumulation.scala