Uses of Class
fj.data.Array
Packages that use Array
Package
Description
Types that set the premise for the existence of Functional Java.
Parallelization strategies.
Common algebraic data types.
Fixed-length vectors
-
Uses of Array in fj
Modifier and TypeMethodDescriptionEqual.arrayEqual
(Equal<A> ea) An equal instance for theArray
type.A hash instance for theArray
type.F.arrayK()
Promotes this function so that it returns its result in a Array.F2.arrayM()
Promotes this function to a function on Arrays.F2.arrayM()
Promotes this function to a function on Arrays.F2.arrayM()
Promotes this function to a function on Arrays.Monoid.arrayMonoid()
A monoid for arrays.An order instance for theArray
type.Semigroup.arraySemigroup()
A semigroup for arrays.A show instance for theArray
type.F.mapArray()
Promotes this function to map over a Array.F.mapArray()
Promotes this function to map over a Array.Turns an array of P1s into a single P1 of an array.F2.zipArrayM()
Promotes this function to zip two arrays, applying the function lock-step over both Arrays.F2.zipArrayM()
Promotes this function to zip two arrays, applying the function lock-step over both Arrays.F2.zipArrayM()
Promotes this function to zip two arrays, applying the function lock-step over both Arrays. -
Uses of Array in fj.control.parallel
Methods in fj.control.parallel that return ArrayModifier and TypeMethodDescriptionA strict version of parMap over arrays.Methods in fj.control.parallel that return types with arguments of type ArrayModifier and TypeMethodDescriptionParModule.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.Binds the given function in parallel across the given array, using the given strategy, with a final join.Maps across an Array in parallel.Maps the given function over the given array in parallel using this strategy.ParModule.parMapArray()
A first-class function that maps another function across an array in parallel.ParModule.parMapArray()
A first-class function that maps another function across an array in parallel.Strategy.parMapArray()
First-class version of parMap on arrays.Strategy.parMapArray()
First-class version of parMap on arrays.Strategy.parMapArray
(F<B, A> f) Promotes a function to a parallel function on arrays using this strategy.Strategy.parMapArray
(F<B, A> f) Promotes a function to a parallel function on arrays using this strategy.Strategy.parMapArray1()
First-class version of parMap1 on arrays (parallel array functor).Strategy.parMapArray1()
First-class version of parMap1 on arrays (parallel array functor).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.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.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.ParModule.parZipWith
(Array<A> as, Array<B> bs, F<A, F<B, C>> f) Zips two arrays together with a given function, in parallel.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 ArrayModifier and TypeMethodDescriptionParModule.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.Binds the given function in parallel across the given array, using the given strategy, with a final join.Maps across an Array in parallel.Maps the given function over the given array in parallel using this strategy.A strict version of parMap over arrays.ParModule.parZipWith
(Array<A> as, Array<B> bs, F<A, F<B, C>> f) Zips two arrays together with a given function, in parallel.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 ArrayModifier and TypeMethodDescriptionParModule.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.Binds the given function in parallel across the given array, using the given strategy, with a final join.Binds the given function in parallel across the given array, using the given strategy, with a final join. -
Uses of Array in fj.data
Modifier and TypeFieldDescriptionJava.Array_BitSet
A function that converts arrays to bit sets.Conversions.Array_String
A function that converts arrays to strings.static final F
<Array<Character>, StringBuffer> Conversions.Array_StringBuffer
A function that converts arrays to string buffers.static final F
<Array<Character>, StringBuilder> Conversions.Array_StringBuilder
A function that converts arrays to string builders.Conversions.String_Array
A function that converts strings to arrays.static final F
<StringBuffer, Array<Character>> Conversions.StringBuffer_Array
A function that converts string buffers to arrays.static final F
<StringBuilder, Array<Character>> Conversions.StringBuilder_Array
A function that converts string builders to arrays.Modifier and TypeMethodDescriptionAppends the given array to this array.Appends the given array to this array.<B> Array
<B> Performs function application within an array (applicative functor pattern).<B> Array
<B> 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> Binds the given function across each element of this array and the given array with a final join.<B,
C> Array <C> Binds the given function across each element of this array and the given array with a final join.<B> Array
<B> Binds the given function across each element of this array with a final join.<B> Array
<B> Binds the given function across each element of this array with a final join.static <A> Array
<A> Array.empty()
Returns an empty array.Filters elements from this array by returning only elements which producetrue
when the given function is applied to them.Filters elements from this array by returning only elements which producetrue
when the given function is applied to them.static <A> Array
<A> Array.iterableArray
(Iterable<A> i) Takes the given iterable to an array.static <A> Array
<A> Array.iteratorArray
(Iterator<A> i) Creates an Array from the iterator.static <A> Array
<A> Java8.JavaStream_Array
(Stream<A> s) static <A> Array
<A> Joins the given array of arrays using a bind operation.<B> Array
<B> Maps the given function across this array.<B> Array
<B> Maps the given function across this array.(package private) static <A> Array
<A> Unsafe package-private constructor.Array.range
(int from, int to) Returns an array of integers from the givenfrom
value (inclusive) to the givento
value (exclusive).Array.ImmutableProjection.reverse()
Reverse this array in constant stack space.Array.reverse()
Reverse this array in constant stack space.<B> Array
<B> Performs a fold left accummulating and returns an array of the intermediate results.<B> Array
<B> Performs a left-fold accummulating and returns an array of the intermediate results.Performs a left-fold accummulating using first array element as a starting value and returns an array of the intermediate results.Performs a left-fold accummulating using first array element as a starting value and returns an array of the intermediate results.<B> Array
<B> Performs a right-fold accummulating and returns an array of the intermediate results.<B> Array
<B> Performs a right-fold accummulating and returns an array of the intermediate results.Performs a right-fold accummulating using last array element as a starting value and returns an array of the intermediate results.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> Performs a bind across each array element, but ignores the element value each time.<B> Array
<B> 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.Either.LeftProjection.toArray()
Returns a single element array if this projection has a value, otherwise an empty array.Either.RightProjection.toArray()
Returns a single element array if this projection has a value, otherwise an empty array.Either3.LeftProjection.toArray()
Either3.MiddleProjection.toArray()
Either3.RightProjection.toArray()
HashMap.toArray()
List.toArray()
Returns a array projection of this list.Returns a array projection of this list.Option.toArray()
Returns an array projection of this optional value.Returns an array projection of this optional value.Stream.toArray()
Returns a array projection of this stream.Returns a array projection of this stream.Validation.FailProjection.toArray()
Returns a single element array if this is a failing value, otherwise an empty list.Validation.toArray()
Returns a single element array if this is a success value, otherwise an empty list.Zips this array with the given array to produce an array of pairs.Array.zipIndex()
Zips this array with the index of its element as a pair.<B,
C> Array <C> Zips this array with the given array using the given function to produce a new array.<B,
C> Array <C> Zips this array with the given array using the given function to produce a new array.Modifier and TypeMethodDescriptionstatic <A> F
<Array<A>, ArrayBlockingQueue<A>> Java.Array_ArrayBlockingQueue
(boolean fair) A function that converts arrays to array blocking queues.Java.Array_ArrayList()
A function that converts arrays to array lists.static <A> F
<Array<A>, ConcurrentLinkedQueue<A>> Java.Array_ConcurrentLinkedQueue()
A function that converts arrays to concurrent linked queues.static <A> F
<Array<A>, CopyOnWriteArrayList<A>> Java.Array_CopyOnWriteArrayList()
A function that converts arrays to copy on write array lists.static <A> F
<Array<A>, CopyOnWriteArraySet<A>> Java.Array_CopyOnWriteArraySet()
A function that converts arrays to copy on write array sets.static <A extends Delayed>
F<Array<A>, DelayQueue<A>> Java.Array_DelayQueue()
A function that converts arrays to delay queues.Conversions.Array_Either()
A function that converts arrays to eithers.Java.Array_EnumSet()
A function that converts arrays to enum sets.Java.Array_HashSet()
A function that converts arrays to hash sets.static <A> F
<Array<A>, LinkedBlockingQueue<A>> Java.Array_LinkedBlockingQueue()
A function that converts arrays to linked blocking queues.static <A> F
<Array<A>, LinkedHashSet<A>> Java.Array_LinkedHashSet()
A function that converts arrays to linked hash sets.static <A> F
<Array<A>, LinkedList<A>> Java.Array_LinkedList()
A function that converts arrays to linked lists.Conversions.Array_List()
A function that converts arrays to lists.Conversions.Array_Option()
A function that converts arrays to options.static <A> F
<Array<A>, PriorityBlockingQueue<A>> Java.Array_PriorityBlockingQueue()
A function that converts arrays to priority blocking queues.static <A> F
<Array<A>, PriorityQueue<A>> Java.Array_PriorityQueue()
A function that converts arrays to priority queues.Java.Array_Stack()
A function that converts arrays to stacks.Conversions.Array_Stream()
A function that converts arrays to streams.static <A> F
<Array<A>, SynchronousQueue<A>> Java.Array_SynchronousQueue
(boolean fair) A function that converts arrays to synchronous queues.Java.Array_TreeSet()
A function that converts arrays to tree sets.Java.Array_Vector()
A function that converts arrays to vectors.Conversions.Either_ArrayA()
A function that converts eithers to arrays.Conversions.Either_ArrayB()
A function that converts eithers to arrays.Array.join()
A first-class version of joinArray.join()
A first-class version of joinArray.join()
A first-class version of joinConversions.List_Array()
A function that converts lists to arrays.Array.map()
First-class map function for Arrays.Array.map()
First-class map function for Arrays.Conversions.Option_Array()
A function that converts options to arrays.Conversions.Stream_Array()
A function that converts streams to arrays.static <A> Collector
<A, List.Buffer<A>, Array<A>> Collectors.toArray()
Transforms an array of pairs into an array of first components and an array of second components.Transforms an array of pairs into an array of first components and an array of second components.Array.wrap()
First-class wrapper function for arrays.Modifier and TypeMethodDescriptionAppends the given array to this array.Appends the given array to this array.<B> Array
<B> Performs function application within an array (applicative functor pattern).<B> Array
<B> Performs function application within an array (applicative functor pattern).<B,
C> Array <C> Binds the given function across each element of this array and the given array with a final join.<B,
C> Array <C> Binds the given function across each element of this array and the given array with a final join.static <A> Array
<A> Joins the given array of arrays using a bind operation.<B> Array
<B> Performs a bind across each array element, but ignores the element value each time.<B> Array
<B> Performs a bind across each array element, but ignores the element value each time.Transforms an array of pairs into an array of first components and an array of second components.Zips this array with the given array to produce an array of pairs.<B,
C> Array <C> Zips this array with the given array using the given function to produce a new array.<B,
C> Array <C> Zips this array with the given array using the given function to produce a new array. -
Uses of Array in fj.data.vector
Methods in fj.data.vector that return ArrayModifier and TypeMethodDescriptionV2.toArray()
Returns an array with the elements of this vector.V3.toArray()
Returns an array with the elements of this vector.V4.toArray()
Returns an array with the elements of this vector.V5.toArray()
Returns an array with the elements of this vector.V6.toArray()
Returns an array with the elements of this vector.V7.toArray()
Returns an array with the elements of this vector.V8.toArray()
Returns an array with the elements of this vector.