Uses of Class
fj.data.Array
-
Packages that use Array Package Description fj Types that set the premise for the existence of Functional Java.fj.control.parallel Parallelization strategies.fj.data Common algebraic data types.fj.data.vector Fixed-length vectors -
-
Uses of Array in fj
Methods in fj that return types with arguments of type Array Modifier and Type Method Description static <A> Equal<Array<A>>Equal. arrayEqual(Equal<A> ea)An equal instance for theArraytype.static <A> Hash<Array<A>>Hash. arrayHash(Hash<A> ha)A hash instance for theArraytype.default F<A,Array<B>>F. arrayK()Promotes this function so that it returns its result in a Array.default F2<Array<A>,Array<B>,Array<C>>F2. arrayM()Promotes this function to a function on Arrays.default F2<Array<A>,Array<B>,Array<C>>F2. arrayM()Promotes this function to a function on Arrays.default F2<Array<A>,Array<B>,Array<C>>F2. arrayM()Promotes this function to a function on Arrays.static <A> Monoid<Array<A>>Monoid. arrayMonoid()A monoid for arrays.static <A> Ord<Array<A>>Ord. arrayOrd(Ord<A> oa)An order instance for theArraytype.static <A> Semigroup<Array<A>>Semigroup. arraySemigroup()A semigroup for arrays.static <A> Show<Array<A>>Show. arrayShow(Show<A> sa)A show instance for theArraytype.default F<Array<A>,Array<B>>F. mapArray()Promotes this function to map over a Array.default F<Array<A>,Array<B>>F. mapArray()Promotes this function to map over a Array.static <A> P1<Array<A>>P1. sequence(Array<P1<A>> as)Turns an array of P1s into a single P1 of an array.default F2<Array<A>,Array<B>,Array<C>>F2. zipArrayM()Promotes this function to zip two arrays, applying the function lock-step over both Arrays.default F2<Array<A>,Array<B>,Array<C>>F2. zipArrayM()Promotes this function to zip two arrays, applying the function lock-step over both Arrays.default F2<Array<A>,Array<B>,Array<C>>F2. zipArrayM()Promotes this function to zip two arrays, applying the function lock-step over both Arrays.Methods in fj with parameters of type Array Modifier and Type Method Description static <A> P1<Array<A>>P1. sequence(Array<P1<A>> as)Turns an array of P1s into a single P1 of an array. -
Uses of Array in fj.control.parallel
Methods in fj.control.parallel that return Array Modifier and Type Method Description <B> Array<A>Strategy. parMap1(F<B,A> f, Array<B> bs)A strict version of parMap over arrays.Methods in fj.control.parallel that return types with arguments of type Array Modifier and Type Method Description <A,B>
Promise<Array<B>>ParModule. parFlatMap(Array<A> as, F<A,Array<B>> f)Binds an Array-valued function across an Array in parallel, concatenating the results into a new Array.static <A,B>
P1<Array<B>>Strategy. parFlatMap(Strategy<Array<B>> s, F<A,Array<B>> f, Array<A> as)Binds the given function in parallel across the given array, using the given strategy, with a final join.<A,B>
Promise<Array<B>>ParModule. parMap(Array<A> as, F<A,B> f)Maps across an Array in parallel.<B> P1<Array<A>>Strategy. parMap(F<B,A> f, Array<B> bs)Maps the given function over the given array in parallel using this strategy.<A,B>
F<F<A,B>,F<Array<A>,Promise<Array<B>>>>ParModule. parMapArray()A first-class function that maps another function across an array in parallel.<A,B>
F<F<A,B>,F<Array<A>,Promise<Array<B>>>>ParModule. parMapArray()A first-class function that maps another function across an array in parallel.<B> F<F<B,A>,F<Array<B>,P1<Array<A>>>>Strategy. parMapArray()First-class version of parMap on arrays.<B> F<F<B,A>,F<Array<B>,P1<Array<A>>>>Strategy. parMapArray()First-class version of parMap on arrays.<B> F<Array<B>,P1<Array<A>>>Strategy. parMapArray(F<B,A> f)Promotes a function to a parallel function on arrays using this strategy.<B> F<Array<B>,P1<Array<A>>>Strategy. parMapArray(F<B,A> f)Promotes a function to a parallel function on arrays using this strategy.<B> F<F<B,A>,F<Array<B>,Array<A>>>Strategy. parMapArray1()First-class version of parMap1 on arrays (parallel array functor).<B> F<F<B,A>,F<Array<B>,Array<A>>>Strategy. parMapArray1()First-class version of parMap1 on arrays (parallel array functor).<B,C>
F2<Array<B>,Array<C>,P1<Array<A>>>Strategy. parZipArrayWith(F2<B,C,A> f)Lifts a given function of arity-2 so that it zips together two arrays in parallel, using this strategy, calling the function once for each corresponding pair in the arrays, position-wise.<B,C>
F2<Array<B>,Array<C>,P1<Array<A>>>Strategy. parZipArrayWith(F2<B,C,A> f)Lifts a given function of arity-2 so that it zips together two arrays in parallel, using this strategy, calling the function once for each corresponding pair in the arrays, position-wise.<B,C>
F2<Array<B>,Array<C>,P1<Array<A>>>Strategy. parZipArrayWith(F2<B,C,A> f)Lifts a given function of arity-2 so that it zips together two arrays in parallel, using this strategy, calling the function once for each corresponding pair in the arrays, position-wise.<A,B,C>
Promise<Array<C>>ParModule. parZipWith(Array<A> as, Array<B> bs, F<A,F<B,C>> f)Zips two arrays together with a given function, in parallel.<B,C>
P1<Array<A>>Strategy. parZipWith(F2<B,C,A> f, Array<B> bs, Array<C> cs)Zips together two arrays in parallel using a given function, with this strategy.Methods in fj.control.parallel with parameters of type Array Modifier and Type Method Description <A,B>
Promise<Array<B>>ParModule. parFlatMap(Array<A> as, F<A,Array<B>> f)Binds an Array-valued function across an Array in parallel, concatenating the results into a new Array.static <A,B>
P1<Array<B>>Strategy. parFlatMap(Strategy<Array<B>> s, F<A,Array<B>> f, Array<A> as)Binds the given function in parallel across the given array, using the given strategy, with a final join.<A,B>
Promise<Array<B>>ParModule. parMap(Array<A> as, F<A,B> f)Maps across an Array in parallel.<B> P1<Array<A>>Strategy. parMap(F<B,A> f, Array<B> bs)Maps the given function over the given array in parallel using this strategy.<B> Array<A>Strategy. parMap1(F<B,A> f, Array<B> bs)A strict version of parMap over arrays.<A,B,C>
Promise<Array<C>>ParModule. parZipWith(Array<A> as, Array<B> bs, F<A,F<B,C>> f)Zips two arrays together with a given function, in parallel.<B,C>
P1<Array<A>>Strategy. parZipWith(F2<B,C,A> f, Array<B> bs, Array<C> cs)Zips together two arrays in parallel using a given function, with this strategy.Method parameters in fj.control.parallel with type arguments of type Array Modifier and Type Method Description <A,B>
Promise<Array<B>>ParModule. parFlatMap(Array<A> as, F<A,Array<B>> f)Binds an Array-valued function across an Array in parallel, concatenating the results into a new Array.static <A,B>
P1<Array<B>>Strategy. parFlatMap(Strategy<Array<B>> s, F<A,Array<B>> f, Array<A> as)Binds the given function in parallel across the given array, using the given strategy, with a final join.static <A,B>
P1<Array<B>>Strategy. parFlatMap(Strategy<Array<B>> s, F<A,Array<B>> f, Array<A> as)Binds the given function in parallel across the given array, using the given strategy, with a final join. -
Uses of Array in fj.data
Fields in fj.data declared as Array Modifier and Type Field Description private Array<A>Array.ImmutableProjection. aFields in fj.data with type parameters of type Array Modifier and Type Field Description static F<Array<java.lang.Boolean>,java.util.BitSet>Java. Array_BitSetA function that converts arrays to bit sets.static F<Array<java.lang.Character>,java.lang.String>Conversions. Array_StringA function that converts arrays to strings.static F<Array<java.lang.Character>,java.lang.StringBuffer>Conversions. Array_StringBufferA function that converts arrays to string buffers.static F<Array<java.lang.Character>,java.lang.StringBuilder>Conversions. Array_StringBuilderA function that converts arrays to string builders.static F<java.lang.String,Array<java.lang.Character>>Conversions. String_ArrayA function that converts strings to arrays.static F<java.lang.StringBuffer,Array<java.lang.Character>>Conversions. StringBuffer_ArrayA function that converts string buffers to arrays.static F<java.lang.StringBuilder,Array<java.lang.Character>>Conversions. StringBuilder_ArrayA function that converts string builders to arrays.Methods in fj.data that return Array Modifier and Type Method Description Array<A>Array. append(Array<A> aas)Appends the given array to this array.Array<A>Array.ImmutableProjection. append(Array<A> aas)Appends the given array to this array.<B> Array<B>Array. apply(Array<F<A,B>> lf)Performs function application within an array (applicative functor pattern).<B> Array<B>Array.ImmutableProjection. apply(Array<F<A,B>> lf)Performs function application within an array (applicative functor pattern).static <A> Array<A>Array. array(A... as)Constructs an array from the given elements.static <A> Array<A>Array. arrayArray(A... as)Returns a copy of the underlying primitive array.<B,C>
Array<C>Array. bind(Array<B> sb, F<A,F<B,C>> f)Binds the given function across each element of this array and the given array with a final join.<B,C>
Array<C>Array. bind(Array<B> sb, F2<A,B,C> f)Binds the given function across each element of this array and the given array with a final join.<B> Array<B>Array. bind(F<A,Array<B>> f)Binds the given function across each element of this array with a final join.<B> Array<B>Array.ImmutableProjection. bind(F<A,Array<B>> f)Binds the given function across each element of this array with a final join.static <A> Array<A>Array. empty()Returns an empty array.Array<A>Array. filter(F<A,java.lang.Boolean> f)Filters elements from this array by returning only elements which producetruewhen the given function is applied to them.Array<A>Array.ImmutableProjection. filter(F<A,java.lang.Boolean> f)Filters elements from this array by returning only elements which producetruewhen the given function is applied to them.static <A> Array<A>Array. iterableArray(java.lang.Iterable<A> i)Takes the given iterable to an array.static <A> Array<A>Array. iteratorArray(java.util.Iterator<A> i)Creates an Array from the iterator.static <A> Array<A>Java8. JavaStream_Array(java.util.stream.Stream<A> s)static <A> Array<A>Array. join(Array<Array<A>> o)Joins the given array of arrays using a bind operation.<B> Array<B>Array.ImmutableProjection. map(F<A,B> f)Maps the given function across this array.<B> Array<B>Array. map(F<A,B> f)Maps the given function across this array.(package private) static <A> Array<A>Array. mkArray(java.lang.Object[] a)Unsafe package-private constructor.static Array<java.lang.Integer>Array. range(int from, int to)Returns an array of integers from the givenfromvalue (inclusive) to the giventovalue (exclusive).Array<A>Array.ImmutableProjection. reverse()Reverse this array in constant stack space.Array<A>Array. reverse()Reverse this array in constant stack space.<B> Array<B>Array. scanLeft(F<B,F<A,B>> f, B b)Performs a fold left accummulating and returns an array of the intermediate results.<B> Array<B>Array. scanLeft(F2<B,A,B> f, B b)Performs a left-fold accummulating and returns an array of the intermediate results.Array<A>Array. scanLeft1(F<A,F<A,A>> f)Performs a left-fold accummulating using first array element as a starting value and returns an array of the intermediate results.Array<A>Array. scanLeft1(F2<A,A,A> f)Performs a left-fold accummulating using first array element as a starting value and returns an array of the intermediate results.<B> Array<B>Array. scanRight(F<A,F<B,B>> f, B b)Performs a right-fold accummulating and returns an array of the intermediate results.<B> Array<B>Array. scanRight(F2<A,B,B> f, B b)Performs a right-fold accummulating and returns an array of the intermediate results.Array<A>Array. scanRight1(F<A,F<A,A>> f)Performs a right-fold accummulating using last array element as a starting value and returns an array of the intermediate results.Array<A>Array. scanRight1(F2<A,A,A> f)Performs a right-fold accummulating using last array element as a starting value and returns an array of the intermediate results.<B> Array<B>Array.ImmutableProjection. sequence(Array<B> bs)Performs a bind across each array element, but ignores the element value each time.<B> Array<B>Array. sequence(Array<B> bs)Performs a bind across each array element, but ignores the element value each time.static <A> Array<A>Array. single(A a)Constructs a singleton array.Array<A>Either.LeftProjection. toArray()Returns a single element array if this projection has a value, otherwise an empty array.Array<B>Either.RightProjection. toArray()Returns a single element array if this projection has a value, otherwise an empty array.Array<A>Either3.LeftProjection. toArray()Array<B>Either3.MiddleProjection. toArray()Array<C>Either3.RightProjection. toArray()Array<P2<K,V>>HashMap. toArray()Array<A>List. toArray()Returns a array projection of this list.Array<A>List. toArray(java.lang.Class<A[]> c)Returns a array projection of this list.Array<A>Option. toArray()Returns an array projection of this optional value.Array<A>Option. toArray(java.lang.Class<A[]> c)Returns an array projection of this optional value.Array<A>Stream. toArray()Returns a array projection of this stream.Array<A>Stream. toArray(java.lang.Class<A[]> c)Returns a array projection of this stream.Array<E>Validation.FailProjection. toArray()Returns a single element array if this is a failing value, otherwise an empty list.Array<T>Validation. toArray()Returns a single element array if this is a success value, otherwise an empty list.<B> Array<P2<A,B>>Array. zip(Array<B> bs)Zips this array with the given array to produce an array of pairs.Array<P2<A,java.lang.Integer>>Array. zipIndex()Zips this array with the index of its element as a pair.<B,C>
Array<C>Array. zipWith(Array<B> bs, F<A,F<B,C>> f)Zips this array with the given array using the given function to produce a new array.<B,C>
Array<C>Array. zipWith(Array<B> bs, F2<A,B,C> f)Zips this array with the given array using the given function to produce a new array.Methods in fj.data that return types with arguments of type Array Modifier and Type Method Description static <A> F<Array<A>,java.util.concurrent.ArrayBlockingQueue<A>>Java. Array_ArrayBlockingQueue(boolean fair)A function that converts arrays to array blocking queues.static <A> F<Array<A>,java.util.ArrayList<A>>Java. Array_ArrayList()A function that converts arrays to array lists.static <A> F<Array<A>,java.util.concurrent.ConcurrentLinkedQueue<A>>Java. Array_ConcurrentLinkedQueue()A function that converts arrays to concurrent linked queues.static <A> F<Array<A>,java.util.concurrent.CopyOnWriteArrayList<A>>Java. Array_CopyOnWriteArrayList()A function that converts arrays to copy on write array lists.static <A> F<Array<A>,java.util.concurrent.CopyOnWriteArraySet<A>>Java. Array_CopyOnWriteArraySet()A function that converts arrays to copy on write array sets.static <A extends java.util.concurrent.Delayed>
F<Array<A>,java.util.concurrent.DelayQueue<A>>Java. Array_DelayQueue()A function that converts arrays to delay queues.static <A,B>
F<P1<A>,F<Array<B>,Either<A,B>>>Conversions. Array_Either()A function that converts arrays to eithers.static <A extends java.lang.Enum<A>>
F<Array<A>,java.util.EnumSet<A>>Java. Array_EnumSet()A function that converts arrays to enum sets.static <A> F<Array<A>,java.util.HashSet<A>>Java. Array_HashSet()A function that converts arrays to hash sets.static <A> F<Array<A>,java.util.concurrent.LinkedBlockingQueue<A>>Java. Array_LinkedBlockingQueue()A function that converts arrays to linked blocking queues.static <A> F<Array<A>,java.util.LinkedHashSet<A>>Java. Array_LinkedHashSet()A function that converts arrays to linked hash sets.static <A> F<Array<A>,java.util.LinkedList<A>>Java. Array_LinkedList()A function that converts arrays to linked lists.static <A> F<Array<A>,List<A>>Conversions. Array_List()A function that converts arrays to lists.static <A> F<Array<A>,Option<A>>Conversions. Array_Option()A function that converts arrays to options.static <A> F<Array<A>,java.util.concurrent.PriorityBlockingQueue<A>>Java. Array_PriorityBlockingQueue()A function that converts arrays to priority blocking queues.static <A> F<Array<A>,java.util.PriorityQueue<A>>Java. Array_PriorityQueue()A function that converts arrays to priority queues.static <A> F<Array<A>,java.util.Stack<A>>Java. Array_Stack()A function that converts arrays to stacks.static <A> F<Array<A>,Stream<A>>Conversions. Array_Stream()A function that converts arrays to streams.static <A> F<Array<A>,java.util.concurrent.SynchronousQueue<A>>Java. Array_SynchronousQueue(boolean fair)A function that converts arrays to synchronous queues.static <A> F<Array<A>,java.util.TreeSet<A>>Java. Array_TreeSet()A function that converts arrays to tree sets.static <A> F<Array<A>,java.util.Vector<A>>Java. Array_Vector()A function that converts arrays to vectors.static <A,B>
F<Either<A,B>,Array<A>>Conversions. Either_ArrayA()A function that converts eithers to arrays.static <A,B>
F<Either<A,B>,Array<B>>Conversions. Either_ArrayB()A function that converts eithers to arrays.static <A> F<Array<Array<A>>,Array<A>>Array. join()A first-class version of joinstatic <A> F<Array<Array<A>>,Array<A>>Array. join()A first-class version of joinstatic <A> F<Array<Array<A>>,Array<A>>Array. join()A first-class version of joinstatic <A> F<List<A>,Array<A>>Conversions. List_Array()A function that converts lists to arrays.static <A,B>
F<F<A,B>,F<Array<A>,Array<B>>>Array. map()First-class map function for Arrays.static <A,B>
F<F<A,B>,F<Array<A>,Array<B>>>Array. map()First-class map function for Arrays.static <A> F<Option<A>,Array<A>>Conversions. Option_Array()A function that converts options to arrays.static <A> F<Stream<A>,Array<A>>Conversions. Stream_Array()A function that converts streams to arrays.static <A> java.util.stream.Collector<A,List.Buffer<A>,Array<A>>Collectors. toArray()static <A,B>
P2<Array<A>,Array<B>>Array. unzip(Array<P2<A,B>> xs)Transforms an array of pairs into an array of first components and an array of second components.static <A,B>
P2<Array<A>,Array<B>>Array. unzip(Array<P2<A,B>> xs)Transforms an array of pairs into an array of first components and an array of second components.static <A> F<A[],Array<A>>Array. wrap()First-class wrapper function for arrays.Methods in fj.data with parameters of type Array Modifier and Type Method Description Array<A>Array. append(Array<A> aas)Appends the given array to this array.Array<A>Array.ImmutableProjection. append(Array<A> aas)Appends the given array to this array.<B> Array<B>Array. apply(Array<F<A,B>> lf)Performs function application within an array (applicative functor pattern).<B> Array<B>Array.ImmutableProjection. apply(Array<F<A,B>> lf)Performs function application within an array (applicative functor pattern).<B,C>
Array<C>Array. bind(Array<B> sb, F<A,F<B,C>> f)Binds the given function across each element of this array and the given array with a final join.<B,C>
Array<C>Array. bind(Array<B> sb, F2<A,B,C> f)Binds the given function across each element of this array and the given array with a final join.static <A> Array<A>Array. join(Array<Array<A>> o)Joins the given array of arrays using a bind operation.<B> Array<B>Array.ImmutableProjection. sequence(Array<B> bs)Performs a bind across each array element, but ignores the element value each time.<B> Array<B>Array. sequence(Array<B> bs)Performs a bind across each array element, but ignores the element value each time.static <A,B>
P2<Array<A>,Array<B>>Array. unzip(Array<P2<A,B>> xs)Transforms an array of pairs into an array of first components and an array of second components.<B> Array<P2<A,B>>Array. zip(Array<B> bs)Zips this array with the given array to produce an array of pairs.<B,C>
Array<C>Array. zipWith(Array<B> bs, F<A,F<B,C>> f)Zips this array with the given array using the given function to produce a new array.<B,C>
Array<C>Array. zipWith(Array<B> bs, F2<A,B,C> f)Zips this array with the given array using the given function to produce a new array.Method parameters in fj.data with type arguments of type Array Modifier and Type Method Description <B> Array<B>Array. bind(F<A,Array<B>> f)Binds the given function across each element of this array with a final join.<B> Array<B>Array.ImmutableProjection. bind(F<A,Array<B>> f)Binds the given function across each element of this array with a final join.static <A> Array<A>Array. join(Array<Array<A>> o)Joins the given array of arrays using a bind operation.Constructors in fj.data with parameters of type Array Constructor Description ImmutableProjection(Array<A> a) -
Uses of Array in fj.data.vector
Methods in fj.data.vector that return Array Modifier and Type Method Description Array<A>V2. toArray()Returns an array with the elements of this vector.Array<A>V3. toArray()Returns an array with the elements of this vector.Array<A>V4. toArray()Returns an array with the elements of this vector.Array<A>V5. toArray()Returns an array with the elements of this vector.Array<A>V6. toArray()Returns an array with the elements of this vector.Array<A>V7. toArray()Returns an array with the elements of this vector.Array<A>V8. toArray()Returns an array with the elements of this vector.
-