Class HList.HNil

  • Enclosing class:
    HList

    public static final class HList.HNil
    extends HList
    The empty HList.
    • Field Detail

      • INSTANCE

        private static final HList.HNil INSTANCE
    • Constructor Detail

      • HNil

        private HNil()
    • 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