org.scalactic.Accumulation

TravValidatable

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
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. TravValidatable
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. 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 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.