Function upper
Source pub fn upper<D: Dimension>(a: &StringArray<D>) -> FerrayResult<StringArray<D>>
Expand description
Convert each string element to uppercase.
§Errors
Returns an error if the internal array construction fails.
§Examples
ⓘlet a = strings::array(&["hello", "world"]).unwrap();
let b = strings::upper(&a).unwrap();
assert_eq!(b.as_slice(), &["HELLO", "WORLD"]);