Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let countCharInList (ch:char, list: List<char>) =
- let filtered = List.filter (fun e -> e = ch) list
- filtered.Length
- printf "%A" (countCharInList('a', ['a';'b';'c';'a']))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement