class DrxOptionApplyIf[A] extends (A) => A
used in conjuntion with DrxAny |> to support optional application helpful to reduce the if(p) f(a) else a common pattern
- Source
- wrapper.scala
- Alphabetic
- By Inheritance
- DrxOptionApplyIf
- Function1
- AnyRef
- Any
- by UnliftOps
- by richDrxAny
- by DrxBoundOps
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- def +(other: String): String
- Implicit
- This member is added by an implicit conversion from DrxOptionApplyIf[A] toany2stringadd[DrxOptionApplyIf[A]] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
- def ->[B](y: B): (DrxOptionApplyIf[A], B)
- Implicit
- This member is added by an implicit conversion from DrxOptionApplyIf[A] toArrowAssoc[DrxOptionApplyIf[A]] performed by method ArrowAssoc in scala.Predef.This conversion will take place only if A is a subclass of Option[Nothing] (A <: Option[Nothing]).
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def andThen[A](g: (A) => A): (A) => A
- Definition Classes
- Function1
- Annotations
- @unspecialized()
- def apply(x: A): A
- Definition Classes
- DrxOptionApplyIf → Function1
- def applyIf(t: Boolean, f: (DrxOptionApplyIf[A]) => DrxOptionApplyIf[A]): DrxOptionApplyIf[A]
- Implicit
- This member is added by an implicit conversion from DrxOptionApplyIf[A] toDrxAny[DrxOptionApplyIf[A]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def applyIf(t: (DrxOptionApplyIf[A]) => Boolean)(f: (DrxOptionApplyIf[A]) => DrxOptionApplyIf[A]): DrxOptionApplyIf[A]
better chaining for types
better chaining for types
- Implicit
- This member is added by an implicit conversion from DrxOptionApplyIf[A] toDrxAny[DrxOptionApplyIf[A]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def compose[A](g: (A) => A): (A) => A
- Definition Classes
- Function1
- Annotations
- @unspecialized()
- def elementOf(xs: Set[DrxOptionApplyIf[A]]): Boolean
- Implicit
- This member is added by an implicit conversion from DrxOptionApplyIf[A] toDrxAny[DrxOptionApplyIf[A]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def ensuring(cond: (DrxOptionApplyIf[A]) => Boolean, msg: => Any): DrxOptionApplyIf[A]
- Implicit
- This member is added by an implicit conversion from DrxOptionApplyIf[A] toEnsuring[DrxOptionApplyIf[A]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: (DrxOptionApplyIf[A]) => Boolean): DrxOptionApplyIf[A]
- Implicit
- This member is added by an implicit conversion from DrxOptionApplyIf[A] toEnsuring[DrxOptionApplyIf[A]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean, msg: => Any): DrxOptionApplyIf[A]
- Implicit
- This member is added by an implicit conversion from DrxOptionApplyIf[A] toEnsuring[DrxOptionApplyIf[A]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- def ensuring(cond: Boolean): DrxOptionApplyIf[A]
- Implicit
- This member is added by an implicit conversion from DrxOptionApplyIf[A] toEnsuring[DrxOptionApplyIf[A]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from DrxOptionApplyIf[A] toStringFormat[DrxOptionApplyIf[A]] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def noneIf(f: (DrxOptionApplyIf[A]) => Boolean): Option[DrxOptionApplyIf[A]]
- Implicit
- This member is added by an implicit conversion from DrxOptionApplyIf[A] toDrxAny[DrxOptionApplyIf[A]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def optionIf(f: (DrxOptionApplyIf[A]) => Boolean): Option[DrxOptionApplyIf[A]]
optionally wrap an object
optionally wrap an object
- Implicit
- This member is added by an implicit conversion from DrxOptionApplyIf[A] toDrxAny[DrxOptionApplyIf[A]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def preApply[B](f: (DrxOptionApplyIf[A]) => B): B
a preApply f => f(a)
a preApply f => f(a)
- Implicit
- This member is added by an implicit conversion from DrxOptionApplyIf[A] toDrxAny[DrxOptionApplyIf[A]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def sideEffect(f: (DrxOptionApplyIf[A]) => Unit): DrxOptionApplyIf[A]
side effect filter
side effect filter
- Implicit
- This member is added by an implicit conversion from DrxOptionApplyIf[A] toDrxAny[DrxOptionApplyIf[A]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def someIf(f: (DrxOptionApplyIf[A]) => Boolean): Option[DrxOptionApplyIf[A]]
- Implicit
- This member is added by an implicit conversion from DrxOptionApplyIf[A] toDrxAny[DrxOptionApplyIf[A]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val t: Option[(A) => A]
- val thisAny: DrxOptionApplyIf[A]
- Implicit
- This member is added by an implicit conversion from DrxOptionApplyIf[A] toDrxAny[DrxOptionApplyIf[A]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- def till(maxArg: DrxOptionApplyIf[A]): Bound[DrxOptionApplyIf[A]]
Bound construction since the Range constructor is deprecated
Bound construction since the Range constructor is deprecated
- Implicit
- This member is added by an implicit conversion from DrxOptionApplyIf[A] toBoundOps[DrxOptionApplyIf[A]] performed by method DrxBoundOps in cc.drx.predef.Enrich.This conversion will take place only if an implicit value of type Boundable[DrxOptionApplyIf[A]] is in scope.
- Definition Classes
- BoundOps
- def toString(): String
- Definition Classes
- Function1 → AnyRef → Any
- def unlift: PartialFunction[A, B]
- Implicit
- This member is added by an implicit conversion from DrxOptionApplyIf[A] toUnliftOps[A, B] performed by method UnliftOps in scala.Function1.This conversion will take place only if A is a subclass of Option[B] (A <: Option[B]).
- Definition Classes
- UnliftOps
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
Deprecated Value Members
- def ?>(f: (DrxOptionApplyIf[A]) => Boolean): Option[DrxOptionApplyIf[A]]
alias for option if
alias for option if
- Implicit
- This member is added by an implicit conversion from DrxOptionApplyIf[A] toDrxAny[DrxOptionApplyIf[A]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- Annotations
- @deprecated
- Deprecated
(Since version v0.2.15) to many symbols are hard to undertand
- def |>[B](f: (DrxOptionApplyIf[A]) => B): B
- Implicit
- This member is added by an implicit conversion from DrxOptionApplyIf[A] toDrxAny[DrxOptionApplyIf[A]] performed by method richDrxAny in cc.drx.predef.Enrich.
- Definition Classes
- DrxAny
- Annotations
- @deprecated
- Deprecated
(Since version v0.2.15) use
preApply
if you must (symbols are concise without concision)
- def →[B](y: B): (DrxOptionApplyIf[A], B)
- Implicit
- This member is added by an implicit conversion from DrxOptionApplyIf[A] toArrowAssoc[DrxOptionApplyIf[A]] performed by method ArrowAssoc in scala.Predef.This conversion will take place only if A is a subclass of Option[Nothing] (A <: Option[Nothing]).
- Definition Classes
- ArrowAssoc
- Annotations
- @deprecated
- Deprecated
(Since version 2.13.0) Use
->
instead. If you still wish to display it as one character, consider using a font with programming ligatures such as Fira Code.