Posts by João Santos • 21 points
1 post
-
2
votes1
answer68
viewsQ: How can I change the code I made to a recursion
This was the initial code I made: count :: Char → String → Int count x xs = length [x’ | x’← xs, x == x’] Switch to recursion: count = length x' | x' <- xs | x == x' What am I doing wrong? Or is…
haskellasked João Santos 21