Class ToArray<A>
java.lang.Object
com.jnape.palatable.lambda.functions.builtin.fn2.ToArray<A>
- Type Parameters:
A- theIterableelement type
- All Implemented Interfaces:
Fn1<Class<A[]>, Fn1<Iterable<? extends A>, A[]>>, Fn2<Class<A[]>, Iterable<? extends A>, A[]>, Applicative<Fn1<Iterable<? extends A>, A[]>, Fn1<Class<A[]>, ?>>, Cartesian<Class<A[]>, Fn1<Iterable<? extends A>, A[]>, Fn1<?,?>>, Cocartesian<Class<A[]>, Fn1<Iterable<? extends A>, A[]>, Fn1<?, ?>>, Contravariant<Class<A[]>, Profunctor<?, Fn1<Iterable<? extends A>, A[]>, Fn1<?, ?>>>, Functor<Fn1<Iterable<? extends A>, A[]>, Fn1<Class<A[]>, ?>>, Profunctor<Class<A[]>, Fn1<Iterable<? extends A>, A[]>, Fn1<?, ?>>, Monad<Fn1<Iterable<? extends A>, A[]>, Fn1<Class<A[]>, ?>>, MonadReader<Class<A[]>, Fn1<Iterable<? extends A>, A[]>, Fn1<Class<A[]>, ?>>, MonadRec<Fn1<Iterable<? extends A>, A[]>, Fn1<Class<A[]>, ?>>, MonadWriter<Class<A[]>, Fn1<Iterable<? extends A>, A[]>, Fn1<Class<A[]>, ?>>
Write all the elements of an
Iterable directly into an array of the specified type. If the Iterable
is an instance of Collection, use Collection.toArray(Object[]).-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Fn1
andThen, carry, cartesian, censor, choose, cocartesian, diMap, diMapR, discardL, flatMap, fmap, lazyZip, listens, local, pure, self, thunk, toFunction, trampolineM, zip, zip
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
ToArray
private ToArray()
-
-
Method Details
-
checkedApply
-
toArray
-
toArray
-
toArray
-