Expand description
Traits§
- Difference
- A trait that implements the Difference::difference method on arrays.
- Difference
All - A trait that implements the DifferenceAll::difference_all method on arrays.
- Escape
- A trait that implements the Escape::escape method on strings.
- IndexOf
- A trait that implements the IndexOf::index_of method on arrays.
- Initial
- A trait that implements the Initial::initial method on arrays.
- Intersect
- A trait that implements the Intersect::intersect method on arrays.
- Intersect
All - A trait that implements the IntersectAll::intersect_all method on arrays.
- Mean
- A trait that implements the Mean::mean method on arrays.
- Pull
- A trait that implements the Pull::pull method on arrays.
- PullAll
- A trait that implements the PullAll::pull_all method on arrays.
- Sample
- A trait that implements the Sample::sample method on arrays.
- Shuffle
- A trait that implements the Shuffle::shuffle method on arrays.
- Tail
- A trait that implements the Tail::tail method on arrays.
- Unescape
- A trait that implements the Unescape::unescape method on strings.
- Uniq
- A trait that implements the Uniq::uniq method on arrays.
Functions§
- difference
- Creates a vector of
array
values not included in theother
array. - difference_
all - Creates a vector of
array
values not included in theothers
nested arrays. - escape
- Converts the characters “&”, “<”, “>”, ‘“’, and “’” in
value
to their corresponding HTML entities. - index_
of - Gets the index at which the first occurrence of
element
is found in thearray
. - initial
- Gets all but the last element of
array
. - intersect
- Creates an array of unique values that are included in both the
array
andother
arrays. The order of result values are determined by thearray
. - intersect_
all - Creates an array of unique values that are included in both the
array
andothers
nested arrays. The order of result values are determined by thearray
. - mean
- Computes the mean of the values in
array
. - pull
- Removes a single given value from
array
. - pull_
all - This method is like pull except that it accepts an array of values to remove.
- sample
- Gets a random element from
array
. - shuffle
- Creates an array of shuffled values.
- tail
- Gets all but the first element of
array
. - unescape
- The inverse of escape. This method converts the HTML entities
&
,<
,>
,"
and'
invalue
to their corresponding characters. - uniq
- Creates a duplicate-free version of an array, in which only the first occurrence of each element is kept. The order of result values is determined by the order they occur in the array.