Expand description
Functions that operate on vectors.
Functions§
- vec_
longest_ str - In a vector of Strings, returns the longest element. If more than one element has the longest length, the last of those long elements is returned.
- vec_
longest_ str_ len - Returns the length of the longest String in a String vector in bytes. Don’t mistake this for pixels.
- vec_
random_ choice - Pick an element randomly. Return, in a tuple, the element along with the it’s index in the vector.
- vec_
string_ to_ str - Converts a vector of Strings into a vector of &str’s.