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

    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 the Array type.
    static <A> Hash<Array<A>>
    Hash.arrayHash(Hash<A> ha)
    A hash instance for the Array type.
    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 the Array type.
    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 the Array type.
    default F<Array<A>,Array<B>>
    Promotes this function to map over a Array.
    default F<Array<A>,Array<B>>
    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>>
    Promotes this function to zip two arrays, applying the function lock-step over both Arrays.
    default F2<Array<A>,Array<B>,Array<C>>
    Promotes this function to zip two arrays, applying the function lock-step over both Arrays.
    default F2<Array<A>,Array<B>,Array<C>>
    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 final Array<A>
    Array.ImmutableProjection.a
     
    Fields in fj.data with type parameters of type Array
    Modifier and Type
    Field
    Description
    static final F<Array<Boolean>,BitSet>
    A function that converts arrays to bit sets.
    static final F<Array<Character>,String>
    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.
    A function that converts arrays to string builders.
    static final F<String,Array<Character>>
    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.
    A function that converts string builders to arrays.
    Methods in fj.data that return Array
    Modifier and Type
    Method
    Description
    Array.append(Array<A> aas)
    Appends the given array to this array.
    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.filter(F<A,Boolean> f)
    Filters elements from this array by returning only elements which produce true when the given function is applied to them.
    Array.ImmutableProjection.filter(F<A,Boolean> f)
    Filters elements from this array by returning only elements which produce true 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>
     
    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(Object[] a)
    Unsafe package-private constructor.
    static Array<Integer>
    Array.range(int from, int to)
    Returns an array of integers from the given from value (inclusive) to the given to value (exclusive).
    Array.ImmutableProjection.reverse()
    Reverse this array in constant stack space.
    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.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.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.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.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.
    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()
     
    final Array<A>
    List.toArray()
    Returns a array projection of this list.
    final Array<A>
    List.toArray(Class<A[]> c)
    Returns a array projection of this list.
    final Array<A>
    Option.toArray()
    Returns an array projection of this optional value.
    final Array<A>
    Option.toArray(Class<A[]> c)
    Returns an array projection of this optional value.
    final Array<A>
    Stream.toArray()
    Returns a array projection of this stream.
    final Array<A>
    Stream.toArray(Class<A[]> c)
    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.
    final 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.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>,ArrayBlockingQueue<A>>
    Java.Array_ArrayBlockingQueue(boolean fair)
    A function that converts arrays to array blocking queues.
    static <A> F<Array<A>,ArrayList<A>>
    A function that converts arrays to array lists.
    static <A> F<Array<A>,ConcurrentLinkedQueue<A>>
    A function that converts arrays to concurrent linked queues.
    static <A> F<Array<A>,CopyOnWriteArrayList<A>>
    A function that converts arrays to copy on write array lists.
    static <A> F<Array<A>,CopyOnWriteArraySet<A>>
    A function that converts arrays to copy on write array sets.
    static <A extends Delayed>
    F<Array<A>,DelayQueue<A>>
    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 Enum<A>>
    F<Array<A>,EnumSet<A>>
    A function that converts arrays to enum sets.
    static <A> F<Array<A>,HashSet<A>>
    A function that converts arrays to hash sets.
    static <A> F<Array<A>,LinkedBlockingQueue<A>>
    A function that converts arrays to linked blocking queues.
    static <A> F<Array<A>,LinkedHashSet<A>>
    A function that converts arrays to linked hash sets.
    static <A> F<Array<A>,LinkedList<A>>
    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>,PriorityBlockingQueue<A>>
    A function that converts arrays to priority blocking queues.
    static <A> F<Array<A>,PriorityQueue<A>>
    A function that converts arrays to priority queues.
    static <A> F<Array<A>,Stack<A>>
    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>,SynchronousQueue<A>>
    Java.Array_SynchronousQueue(boolean fair)
    A function that converts arrays to synchronous queues.
    static <A> F<Array<A>,TreeSet<A>>
    A function that converts arrays to tree sets.
    static <A> F<Array<A>,Vector<A>>
    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 join
    static <A> F<Array<Array<A>>,Array<A>>
    Array.join()
    A first-class version of join
    static <A> F<Array<Array<A>>,Array<A>>
    Array.join()
    A first-class version of join
    static <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> 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.append(Array<A> aas)
    Appends the given array to this array.
    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
    Modifier
    Constructor
    Description
    private
     
  • Uses of Array in fj.data.vector

    Methods in fj.data.vector that return Array
    Modifier and Type
    Method
    Description
    V2.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.