Combine three equal-length vectors into a vector with some function
Combine two equal-length vectors pairwise with some function
Combine three equal-length vectors elementwise into a vector of tuples
Combine two equal-length vectors pairwise
Replace the element at a particular index with the result of applying a function to it
the index to replace at
the update function
the vector to replace in
Convert a vector of three-tuples to a triplet of vectors
Convert a vector of pairs to a pair of vectors
Transpose a Vect of Vects, turning rows into columns and vice versa.
As the types ensure rectangularity, this is an involution, unlike Prelude.List.transpose
.
Take the longest prefix of a Vect such that all elements satisfy some
Boolean predicate.
the predicate
Get the first n elements of a Vect
the number of elements to take
All but the first element of the vector
A tuple where the first element is a Vect of the n first elements and
the second element is a Vect of the remaining elements of the original Vect
It is equivalent to (take n xs, drop n xs)
the index to split at
the Vect to split in two
Reverse the order of the elements of a vector
Repeate some value n times
the number of times to repeat it
the value to repeat
Replace an element at a particlar index with another
Make the elements of some vector unique by some test
Make the elements of some vector unique by the default Boolean equality
Map a partial function across a vector, returning those elements for which
the function had a value.
The first projection of the resulting pair (ie the length) will always be
at most the length of the input vector. This is not, however, guaranteed
by the type.
the partial function (expressed by returning Maybe
)
the vector to check for results
Find the association of some key with a user-provided comparison
the comparison operator for keys (True if they match)
the key to look for
Find the assocation of some key using the default Boolean equality test
Calculate the length of a Vect
.
Note: this is only useful if you don't already statically know the length
and you want to avoid matching the implicit argument for erasure reasons.
the length (provably equal to the return value)
the vector
The last element of the vector
Alternate an element between the other elements of a vector
the element to intersperse
the vector to separate with sep
Insert an element at a particular index
All but the last element of the vector
Extract a particular element from a vector
Only the first element of the vector
Check if any element of xs is found in elems by a user-provided comparison
the comparison operator
the vector to search
what to search for
Check if any element of xs is found in elems using the default Boolean equality test
Convert a list to a vector.
The length of the list should be statically known.
Foldr without seeding the accumulator
Foldl without seeding the accumulator
Find the indices of all elements that satisfy some test
Find the index of the first element of the vector that satisfies some test
Find the first element of the vector that satisfies some test
the test to satisfy
Find all elements of a vector that satisfy some test
Search for an item using a user-provided test
the equality test
the item to search for
the vector to search in
Use the default Boolean equality on elements to search for an item
what to search for
where to search
Remove the longest prefix of a Vect such that all removed elements satisfy some
Boolean predicate.
the predicate
Remove the first n elements of a Vect
the number of elements to remove
Construct a new vector consisting of all but the indicated element
Flatten a vector of equal-length vectors
Append two vectors