Packages

sealed abstract class HList extends Product

A heterogenous list where each element has its own type.

Source
HList.scala
Linear Supertypes
Product, Equals, AnyRef, Any
Known Subclasses
Type Hierarchy
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. HList
  2. Product
  3. Equals
  4. AnyRef
  5. Any
Implicitly
  1. by StringFormat
  2. by Ensuring
  3. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. type ::[E] = HCons[E, Self]

    The type of prepending an element of type E to this HList

  2. abstract type Head

    The type of the first element

  3. abstract type Self <: HList

    The type of this HList object

  4. abstract type Tail <: HList

    The type of the tail of this HList

Abstract Value Members

  1. abstract def head: Head

    Get the first element, or throw a NoSuchElementException if this HList is empty.

  2. abstract def nonEmpty: Boolean

    Check if this HList is non-empty.

  3. abstract def self: Self

    Return this HList typed as Self/

  4. abstract def tail: Tail

    Get the tail of the list, or throw a NoSuchElementException if this HList is empty.

  5. abstract def toList: List[Any]

    Convert this HList to a List[Any].

Concrete Value Members

  1. final def ::[E](elem: E): ::[E]

    Prepend an element to this HList, returning a new HList.

    Prepend an element to this HList, returning a new HList.

    Annotations
    @inline()
  2. final def canEqual(that: Any): Boolean
    Definition Classes
    HList → Equals
  3. final def drop(i: Int): HList

    Drop the first n elements from this HList.

  4. final def equals(that: Any): Boolean
    Definition Classes
    HList → Equals → AnyRef → Any
  5. final def foreach(f: (Any) => Unit): Unit

    Evaluate a function for each element of this HList.

  6. final lazy val hashCode: Int
    Definition Classes
    HList → AnyRef → Any
  7. final def isEmpty: Boolean

    Check if this list is empty.

  8. final def length: Int

    Get the length of this list.

    Get the length of this list.

    Annotations
    @inline()
  9. final def productArity: Int

    Get the length of this list as an Int.

    Get the length of this list as an Int.

    Definition Classes
    HList → Product
  10. final def productElement(i: Int): Any
    Definition Classes
    HList → Product
  11. def productElementName(n: Int): String
    Definition Classes
    Product
  12. def productElementNames: Iterator[String]
    Definition Classes
    Product
  13. def productIterator: Iterator[Any]
    Definition Classes
    Product
  14. def productPrefix: String
    Definition Classes
    Product
  15. final def toString(): String
    Definition Classes
    HList → AnyRef → Any