Skip to main content

split_ragged

Function split_ragged 

Source
pub fn split_ragged<D: Dimension>(
    a: &StringArray<D>,
    sep: &str,
) -> FerrayResult<Vec<Vec<String>>>
Expand description

Ragged-result variant of split: returns a Vec<Vec<String>> so callers that need the unpadded splits per element don’t have to strip empty padding from the 2-D result (#277).

§Errors

Returns an error only for internal failures.