com.jnape.palatable.lambda.adt.hlist

## Class HList.HNil

- java.lang.Object
- - com.jnape.palatable.lambda.adt.hlist.HList
  - - com.jnape.palatable.lambda.adt.hlist.HList.HNil

- Enclosing class:
    HList

      public static final class HList.HNil
      extends HList

  The empty `HList`.

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from class com.jnape.palatable.lambda.adt.hlist.HList

      `HList.HCons<Head,Tail extends HList>, HList.HNil`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `<Head> SingletonHList<Head>` | `cons(Head head)` Cons an element onto the front of this HList.

    - ### Methods inherited from class com.jnape.palatable.lambda.adt.hlist.HList

      `cons, nil, singletonHList, toString, tuple, tuple, tuple, tuple, tuple, tuple, tuple`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Method Detail

    - #### cons

          public <Head> SingletonHList<Head> cons(Head head)

      Description copied from class: `HList`
      Cons an element onto the front of this HList.
      Specified by:
        `cons` in class `HList`
      Type Parameters:
        `Head` - the new head type
      Parameters:
        `head` - the new head element
      Returns:
        the updated HList