Class Uncons<A>

    • Field Detail

      • INSTANCE

        private static final Uncons<?> INSTANCE
    • Constructor Detail

      • Uncons

        private Uncons()
    • Method Detail

      • checkedApply

        public Maybe<Tuple2<A,​java.lang.Iterable<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<Tuple2<A,​java.lang.Iterable<A>>>>
        Parameters:
        as - the argument
        Returns:
        the result of the function application
      • uncons

        public static <A> Uncons<A> uncons()
      • uncons

        public static <A> Maybe<Tuple2<A,​java.lang.Iterable<A>>> uncons​(java.lang.Iterable<A> as)