wurbo 0.4.0

A timy framework for WebAssembly Component model front-ends
Documentation
1
2
3
4
5
const VOWELS: &[char] = &['a', 'A', 'e', 'E', 'i', 'I', 'o', 'O', 'u', 'U'];

pub fn count_vowels(s: &str) -> usize {
    s.chars().filter(|c| VOWELS.contains(c)).count()
}