|
|
il y a 7 ans | |
|---|---|---|
| .. | ||
| src | il y a 7 ans | |
| tests | il y a 8 ans | |
| Cargo.toml | il y a 8 ans | |
| README.md | il y a 8 ans | |
Run cargo init in your task3/ directory.
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.