Class V8<A>
java.lang.Object
fj.data.vector.V8<A>
- All Implemented Interfaces:
Iterable<A>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription__1()A first-class function to get the first element of a vector.__2()A first-class function to get the second element of a vector.__3()A first-class function to get the third element of a vector.__4()A first-class function to get the fourth element of a vector.__5()A first-class function to get the fifth element of a vector.__6()A first-class function to get the sixth element of a vector.__7()A first-class function to get the seventh element of a vector.__8()A first-class function to get the eighth element of a vector._1()Returns the first element of this vector._2()Returns the second element of this vector._3()Returns the third element of this vector._4()Returns the fourth element of this vector._5()Returns the fifth element of this vector._6()Returns the sixth element of this vector._7()Returns the seventh element of this vector._8()Returns the eighth element of this vector.<B> V8<B> Performs function application within a vector (applicative functor pattern).static <A> V8<A> Creates a vector-8 from a head and a tail.final booleanfinal inthashCode()head()Returns the first element of this vector, as a product-1.iterator()Returns an iterator for the elements of this vector.<B> V8<B> Maps the given function across this vector.p()Returns a homogeneous product-8 equivalent to this vector.static <A> V8<A> Creates a vector-8 from a homogeneous product-8.p_()Returns a function that transforms a vector-8 to the equivalent product-8.tail()Returns all but the first element of this vector, as a vector-7.toArray()Returns an array with the elements of this vector.Returns a nonempty list with the elements of this vector.toStream()Returns a stream of the elements of this vector.Returns a function that transforms a vector-8 to a stream of its elements.Zips this vector with the given vector to produce a vector of vectors.Zips this vector with the given vector to produce a vector of pairs.<B,C> V8 <C> Zips this vector with the given vector using the given function to produce a new vector.Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Field Details
-
tail
-
head
-
-
Constructor Details
-
V8
-
-
Method Details
-
equals
-
hashCode
-
p
-
cons
-
_1
-
_2
Returns the second element of this vector.- Returns:
- the second element of this vector.
-
_3
-
_4
Returns the fourth element of this vector.- Returns:
- the fourth element of this vector.
-
_5
-
_6
-
_7
Returns the seventh element of this vector.- Returns:
- the seventh element of this vector.
-
_8
Returns the eighth element of this vector.- Returns:
- the eighth element of this vector.
-
tail
-
head
-
iterator
-
p
-
toNonEmptyList
Returns a nonempty list with the elements of this vector.- Returns:
- a nonempty list with the elements of this vector.
-
toStream
-
toArray
-
map
-
apply
-
zipWith
Zips this vector with the given vector using the given function to produce a new vector.- Parameters:
f- The function to zip this vector and the given vector with.bs- The vector to zip this vector with.- Returns:
- A new vector with the results of the function.
-
zip
-
vzip
-
toStream_
-
p_
-
__1
-
__2
-
__3
-
__4
-
__5
-
__6
-
__7
-
__8
-