Function sknife::collection::count [] [src]

pub fn count<T, I>(list: I) -> usize where
    I: Iterator<Item = T>, 

Get the count of elements in the list

Arguments

  • list - A list of elements to find in

Example

use sknife::collection::count;
let list = vec![1, 2, 3, 4];
count(list.into_iter());
 

Result

4;