Uses of Class
fj.data.vector.V2

Packages that use V2
Package
Description
Types that set the premise for the existence of Functional Java.
Common algebraic data types.
Provides 2-3 finger trees, a functional representation of persistent sequences supporting access to the ends in amortized O(1) time.
Optic data types adapted from the Scala Monocle library and inspired by the Haskell Lens library.
Fixed-length vectors
  • Uses of V2 in fj

    Methods in fj that return types with arguments of type V2
    Modifier and Type
    Method
    Description
    static <A> Equal<V2<A>>
    Equal.v2Equal(Equal<A> ea)
    An equal instance for a vector-2.
    static <A> Hash<V2<A>>
    Hash.v2Hash(Hash<A> ea)
    A hash instance for a vector-2.
    static <A> Show<V2<A>>
    Show.v2Show(Show<A> ea)
    A show instance for a vector-2.
  • Uses of V2 in fj.data

    Fields in fj.data with type parameters of type V2
    Modifier and Type
    Field
    Description
    static final F<Natural,F<Natural,V2<Natural>>>
    Natural.divmod
    A function that divides its second argument by its first, yielding both the quotient and the remainder.
    Methods in fj.data that return V2
    Modifier and Type
    Method
    Description
    Natural.divmod(Natural n)
    Divide a natural number by another yielding both the quotient and the remainder.
    final <B> V2<List<B>>
    List.traverseV2(F<A,V2<B>> f)
     
    Method parameters in fj.data with type arguments of type V2
    Modifier and Type
    Method
    Description
    final <B> V2<List<B>>
    List.traverseV2(F<A,V2<B>> f)
     
  • Uses of V2 in fj.data.fingertrees

    Fields in fj.data.fingertrees declared as V2
    Modifier and Type
    Field
    Description
    private final V2<A>
    Node2.as
     
    private final V2<A>
    Two.as
     
    Methods in fj.data.fingertrees that return V2
    Modifier and Type
    Method
    Description
    V2<A>
    Node2.toVector()
     
    V2<A>
    Two.values()
    Returns the elements of this digit as a vector.
    Methods in fj.data.fingertrees with parameters of type V2
    Modifier and Type
    Method
    Description
    MakeTree.node2(V2<A> v)
    A binary tree node
    Constructors in fj.data.fingertrees with parameters of type V2
    Modifier
    Constructor
    Description
    (package private)
    Node2(Measured<V,A> m, V2<A> as)
     
    (package private)
    Two(Measured<V,A> m, V2<A> as)
     
  • Uses of V2 in fj.data.optic

    Methods in fj.data.optic that return types with arguments of type V2
    Modifier and Type
    Method
    Description
    F<S,V2<S>>
    Lens.modifyV2F(F<A,V2<A>> f)
     
    F<S,V2<S>>
    Optional.modifyV2F(F<A,V2<A>> f)
     
    final F<S,V2<T>>
    PIso.modifyV2F(F<A,V2<B>> f)
    modify polymorphically the target of a PIso with an Applicative function
    abstract F<S,V2<T>>
    PLens.modifyV2F(F<A,V2<B>> f)
    modify polymorphically the target of a PLens with an Applicative function
    abstract F<S,V2<T>>
    POptional.modifyV2F(F<A,V2<B>> f)
    modify polymorphically the target of a POptional with an Applicative function
    final F<S,V2<T>>
    PPrism.modifyV2F(F<A,V2<B>> f)
    modify polymorphically the target of a PPrism with an Applicative function
    abstract F<S,V2<T>>
    PTraversal.modifyV2F(F<A,V2<B>> f)
    modify polymorphically the target of a PTraversal with an Applicative function
    F<S,V2<S>>
    Traversal.modifyV2F(F<A,V2<A>> f)
     
    Method parameters in fj.data.optic with type arguments of type V2
    Modifier and Type
    Method
    Description
    F<S,V2<S>>
    Lens.modifyV2F(F<A,V2<A>> f)
     
    F<S,V2<S>>
    Optional.modifyV2F(F<A,V2<A>> f)
     
    final F<S,V2<T>>
    PIso.modifyV2F(F<A,V2<B>> f)
    modify polymorphically the target of a PIso with an Applicative function
    abstract F<S,V2<T>>
    PLens.modifyV2F(F<A,V2<B>> f)
    modify polymorphically the target of a PLens with an Applicative function
    abstract F<S,V2<T>>
    POptional.modifyV2F(F<A,V2<B>> f)
    modify polymorphically the target of a POptional with an Applicative function
    final F<S,V2<T>>
    PPrism.modifyV2F(F<A,V2<B>> f)
    modify polymorphically the target of a PPrism with an Applicative function
    abstract F<S,V2<T>>
    PTraversal.modifyV2F(F<A,V2<B>> f)
    modify polymorphically the target of a PTraversal with an Applicative function
    F<S,V2<S>>
    Traversal.modifyV2F(F<A,V2<A>> f)
     
  • Uses of V2 in fj.data.vector

    Fields in fj.data.vector declared as V2
    Modifier and Type
    Field
    Description
    private final V2<A>
    V3.tail
     
    Methods in fj.data.vector that return V2
    Modifier and Type
    Method
    Description
    <B> V2<B>
    V2.apply(V2<F<A,B>> vf)
    Performs function application within a vector (applicative functor pattern).
    <B> V2<B>
    V2.map(F<A,B> f)
    Maps the given function across this vector.
    static <A> V2<A>
    V2.p(P2<A,A> p)
    Creates a vector-2 from a homogeneous product-2.
    V2<A>
    V3.tail()
    Returns all but the first element of this vector, as a vector-2.
    static <A> V2<A>
    V.v(A a1, A a2)
    Puts elements in a vector-2.
    static <A> V2<A>
    V.v(F0<A> a1, F0<A> a2)
    Puts elements in a vector-2.
    V2<V2<A>>
    V2.vzip(V2<A> bs)
    Zips this vector with the given vector to produce a vector of vectors.
    <B> V2<P2<A,B>>
    V2.zip(V2<B> bs)
    Zips this vector with the given vector to produce a vector of pairs.
    <B, C> V2<C>
    V2.zipWith(F<A,F<B,C>> f, V2<B> bs)
    Zips this vector with the given vector using the given function to produce a new vector.
    Methods in fj.data.vector that return types with arguments of type V2
    Modifier and Type
    Method
    Description
    static <A> F<V2<A>,A>
    V2.__1()
    A first-class function to get the first element of a vector.
    static <A> F<V2<A>,A>
    V2.__2()
    A first-class function to get the second element of a vector.
    static <A> F<V2<A>,P2<A,A>>
    V2.p_()
    Returns a function that transforms a vector-2 to the equivalent product-2.
    static <A> F<V2<A>,Stream<A>>
    Returns a function that transforms a vector-2 to a stream of its elements.
    static <A> F2<A,A,V2<A>>
    V.v2()
    Returns a function that puts elements in a vector-2.
    V2<V2<A>>
    V2.vzip(V2<A> bs)
    Zips this vector with the given vector to produce a vector of vectors.
    V3<V2<A>>
    V3.vzip(V3<A> bs)
    Zips this vector with the given vector to produce a vector of vectors.
    V4<V2<A>>
    V4.vzip(V4<A> bs)
    Zips this vector with the given vector to produce a vector of vectors.
    V5<V2<A>>
    V5.vzip(V5<A> bs)
    Zips this vector with the given vector to produce a vector of vectors.
    V6<V2<A>>
    V6.vzip(V6<A> bs)
    Zips this vector with the given vector to produce a vector of vectors.
    V7<V2<A>>
    V7.vzip(V7<A> bs)
    Zips this vector with the given vector to produce a vector of vectors.
    V8<V2<A>>
    V8.vzip(V8<A> bs)
    Zips this vector with the given vector to produce a vector of vectors.
    Methods in fj.data.vector with parameters of type V2
    Modifier and Type
    Method
    Description
    <B> V2<B>
    V2.apply(V2<F<A,B>> vf)
    Performs function application within a vector (applicative functor pattern).
    static <A> V3<A>
    V3.cons(P1<A> head, V2<A> tail)
    Creates a vector-3 from a head and a tail.
    V2<V2<A>>
    V2.vzip(V2<A> bs)
    Zips this vector with the given vector to produce a vector of vectors.
    <B> V2<P2<A,B>>
    V2.zip(V2<B> bs)
    Zips this vector with the given vector to produce a vector of pairs.
    <B, C> V2<C>
    V2.zipWith(F<A,F<B,C>> f, V2<B> bs)
    Zips this vector with the given vector using the given function to produce a new vector.
    Constructors in fj.data.vector with parameters of type V2
    Modifier
    Constructor
    Description
    private
    V3(P1<A> head, V2<A> tail)