Skip to main content

count

Function count 

Source
pub fn count<D: Dimension>(
    a: &StringArray<D>,
    sub: &str,
) -> FerrayResult<Array<u64, Ix1>>
Expand description

Count non-overlapping occurrences of sub in each string element.

Returns an Array<u64> with the count for each element.

ยงErrors

Returns an error if the internal array construction fails.