The second "a" you put, shouldn´t be Integer?, shouldn´t you have an Integral ouput Type? It could be done using only things like map, iterate, take and other prelude staff: is that ok?
Cheers,
            Luis Michelena
            (a "Just a student")
----- Original Message -----
From: xoo
To: haskell-cafe@haskell.org
Sent: Wednesday, June 05, 2002 8:59 AM
Subject: (no subject)

hi.. i was just wondering if some body could give a simple equation for the following situation.other than recursion plz..
 
occurrences :: Eq a => a -> [a] -> [a]
--occurrences xs ys returns the number of times that xs  occurs in ys
 
 
thanks
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.368 / Virus Database: 204 - Release Date: 29/5/02