Class Last<A>

    • Field Detail

      • INSTANCE

        private static final Last<?> INSTANCE
    • Constructor Detail

      • Last

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

        public static <A> Last<A> last()
      • last

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