|
|
il y a 8 ans | |
|---|---|---|
| .. | ||
| src | il y a 8 ans | |
| tests | il y a 8 ans | |
| README.md | il y a 8 ans | |
Schreiben Sie eine Funktion count(line: &str, c: char) -> u64) welche zählt, wie oft ein gegebenes Zeichen © in einem gegebenen String (line) vorkommt und diese Anzahl zurück gibt. Z.B. soll der Aufruf count("peter", 'e') 2 zurückgeben.