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.
  • Field Details

    • INSTANCE

      private static final HList.HNil INSTANCE
  • Constructor Details

    • HNil

      private HNil()
  • Method Details

    • 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