final class OptionIdOps[A] extends AnyVal
- Alphabetic
- By Inheritance
- OptionIdOps
- AnyVal
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new OptionIdOps(a: A)
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
##(): Int
- Definition Classes
- Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
some: Option[A]
Wrap a value in
Some
.Wrap a value in
Some
.3.some
is equivalent toSome(3)
, but the former will have an inferred return type ofOption[Int]
while the latter will haveSome[Int]
.Example:
scala> import cats.implicits._ scala> 3.some res0: Option[Int] = Some(3)
-
def
toString(): String
- Definition Classes
- Any