Packages

c

cats.syntax

OptionIdOps

final class OptionIdOps[A] extends AnyVal

Source
option.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. OptionIdOps
  2. AnyVal
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new OptionIdOps(a: A)

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    Any
  2. final def ##(): Int
    Definition Classes
    Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def getClass(): Class[_ <: AnyVal]
    Definition Classes
    AnyVal → Any
  6. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  7. def some: Option[A]

    Wrap a value in Some.

    Wrap a value in Some.

    3.some is equivalent to Some(3), but the former will have an inferred return type of Option[Int] while the latter will have Some[Int].

    Example:

    scala> import cats.implicits._
    scala> 3.some
    res0: Option[Int] = Some(3)
  8. def toString(): String
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped