OptionalSyntax

final case class OptionalSyntax[S, A](self: Optional[S, A]) extends AnyVal

Extension methods for monomorphic Optional

Extension methods for monomorphic Optional

Source
Optional.scala
trait Serializable
trait Product
trait Equals
class AnyVal
trait Matchable
class Any

Value members

Concrete methods

def at[I, A1](i: I)(evAt: At[A, I, A1]): Optional[S, A1]
def each[C](evEach: Each[A, C]): Traversal[S, C]
def filter(predicate: A => Boolean): Optional[S, A]

Select all the elements which satisfies the predicate. This combinator can break the fusion property see Optional.filter for more details.

Select all the elements which satisfies the predicate. This combinator can break the fusion property see Optional.filter for more details.

Source
Optional.scala
def filterIndex[I, A1](predicate: I => Boolean)(ev: FilterIndex[A, I, A1]): Traversal[S, A1]
def index[I, A1](i: I)(evIndex: Index[A, I, A1]): Optional[S, A1]
def withDefault[A1](defaultValue: A1)(evOpt: A =:= Option[A1]): Optional[S, A1]

Inherited methods

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product