Class Head<A>

    • Field Detail

      • INSTANCE

        private static final Head<?> INSTANCE
    • Constructor Detail

      • Head

        private Head()
    • Method Detail

      • checkedApply

        public Maybe<A> checkedApply​(java.lang.Iterable<A> as)
        Description copied from interface: Fn1
        Invoke this function with the given argument, potentially throwing any Throwable.
        Specified by:
        checkedApply in interface Fn1<java.lang.Iterable<A>,​Maybe<A>>
        Parameters:
        as - the argument
        Returns:
        the result of the function application
      • head

        public static <A> Head<A> head()
      • head

        public static <A> Maybe<A> head​(java.lang.Iterable<A> as)