Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Jul 12th, 2018 48 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  1. count :: String -> (Int, Int)
  2. count s = loop 0 0 0
  3.    where
  4.       loop i nCons nVow
  5.          | i >= length s = (nCons, nVow)
  6.          | isCons(s!!i) = loop (i+1) (nCons+1) (nVow)
  7.          | isVow(s!!i) = loop (i+1) nCons (nVow+1)
  8.          | otherwise = loop (i+1) (nCons) (nVow)
  9.  
  10. : ERROR "countvowels.hs":7 - Syntax error in declaration (unexpected `|')
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top