Class Force<A>

  • Type Parameters:
    A - the Iterable element type
    All Implemented Interfaces:
    Fn1<java.lang.Iterable<A>,​java.lang.Iterable<A>>, Applicative<java.lang.Iterable<A>,​Fn1<java.lang.Iterable<A>,​?>>, Cartesian<java.lang.Iterable<A>,​java.lang.Iterable<A>,​Fn1<?,​?>>, Cocartesian<java.lang.Iterable<A>,​java.lang.Iterable<A>,​Fn1<?,​?>>, Contravariant<java.lang.Iterable<A>,​Profunctor<?,​java.lang.Iterable<A>,​Fn1<?,​?>>>, Functor<java.lang.Iterable<A>,​Fn1<java.lang.Iterable<A>,​?>>, Profunctor<java.lang.Iterable<A>,​java.lang.Iterable<A>,​Fn1<?,​?>>, Monad<java.lang.Iterable<A>,​Fn1<java.lang.Iterable<A>,​?>>, MonadReader<java.lang.Iterable<A>,​java.lang.Iterable<A>,​Fn1<java.lang.Iterable<A>,​?>>, MonadRec<java.lang.Iterable<A>,​Fn1<java.lang.Iterable<A>,​?>>, MonadWriter<java.lang.Iterable<A>,​java.lang.Iterable<A>,​Fn1<java.lang.Iterable<A>,​?>>

    @Deprecated
    public final class Force<A>
    extends java.lang.Object
    implements Fn1<java.lang.Iterable<A>,​java.lang.Iterable<A>>
    Deprecated.
    in favor of traversing into an IO and running it
    Force a full iteration of an Iterable, presumably to perform any side-effects contained therein. Returns the Iterable back.
    • Field Detail

      • INSTANCE

        private static final Force<?> INSTANCE
        Deprecated.
    • Constructor Detail

      • Force

        private Force()
        Deprecated.
    • Method Detail

      • checkedApply

        public java.lang.Iterable<A> checkedApply​(java.lang.Iterable<A> as)
        Deprecated.
        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>,​java.lang.Iterable<A>>
        Parameters:
        as - the argument
        Returns:
        the result of the function application
      • force

        public static <A> Force<A> force()
        Deprecated.
      • force

        public static <A> java.lang.Iterable<A> force​(java.lang.Iterable<A> as)
        Deprecated.