shapeless

headOption

object headOption extends ~>[List, Option]

Polymorphic function returning the head of a List.

Linear Supertypes
~>[List, Option], Poly1, Poly, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. headOption
  2. ~>
  3. Poly1
  4. Poly
  5. AnyRef
  6. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. type Case0[T] = Case0Aux[headOption.this.type, T]

    The type of the case representing this polymorphic value at type T.

    The type of the case representing this polymorphic value at type T.

    Definition Classes
    Poly
  2. type Case1[T] = Case1Aux[headOption.this.type, T]

    The type of the case representing this polymorphic unary function at argument type T.

    The type of the case representing this polymorphic unary function at argument type T.

    Definition Classes
    Poly
  3. class Case1Builder[T] extends AnyRef

    Definition Classes
    Poly1
  4. type Case2[T, U] = Case2Aux[headOption.this.type, T, U]

    The type of the case representing this polymorphic binary function at argument types T and U.

    The type of the case representing this polymorphic binary function at argument types T and U.

    Definition Classes
    Poly
  5. type Hom[T] = Case1[T] { type R = T }

    The type of a case of this polymorphic function of the form T => T

    The type of a case of this polymorphic function of the form T => T

    Definition Classes
    Poly
  6. type Pullback1[T, R0] = Case1[T] { type R = R0 }

    The type of a case of this polymorphic function of the form T => R

    The type of a case of this polymorphic function of the form T => R

    Definition Classes
    Poly
  7. type Pullback2[T, U, R0] = Case2[T, U] { type R = R0 }

    The type of a case of this polymorphic function of the form (T, U) => R

    The type of a case of this polymorphic function of the form (T, U) => R

    Definition Classes
    Poly

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. def andThen[F <: Poly](f: F): Compose1[F, headOption.this.type]

    Definition Classes
    Poly1
  7. def apply[T](l: List[T]): Option[T]

    Definition Classes
    headOption~>
  8. def apply[T, U](t: T, u: U)(implicit c: Case2[T, U]): R

    Definition Classes
    Poly
  9. def apply[T](t: T)(implicit c: Case1[T]): R

    Definition Classes
    Poly
  10. def apply[T](implicit c: Case0[T]): T

    Definition Classes
    Poly
  11. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  12. def at[T]: Case1Builder[T]

    Creates an instance of the case representing this polymorphic unary function at argument type T.

    Creates an instance of the case representing this polymorphic unary function at argument type T.

    Definition Classes
    Poly1
  13. implicit def caseUniv[T]: Case1[List[T]] { type R = Option[T] }

    Definition Classes
    ~>
  14. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  15. def compose[F <: Poly](f: F): Compose1[headOption.this.type, F]

    Definition Classes
    Poly1
  16. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  17. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  18. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  19. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  20. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  21. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  22. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  23. final def notify(): Unit

    Definition Classes
    AnyRef
  24. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  26. def toString(): String

    Definition Classes
    AnyRef → Any
  27. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  28. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  29. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from ~>[List, Option]

Inherited from Poly1

Inherited from Poly

Inherited from AnyRef

Inherited from Any

Ungrouped