If you post some of your tries, we could give you specific tips.
 
--
Markus Schnell 
 
 -----Ursprüngliche Nachricht-----
Von: Rajiv Patel [mailto:raj_patel@cwcom.net]
Gesendet: Mittwoch, 27. August 2003 16:09
An: haskell@haskell.org
Betreff: Need some help please

Hi,

 

I need to define a function called safetail; it's like tail except that this one maps the empty list to the empty list. It has to be defined using the following:

 

  1. a conditional expression
  2. guarded equation
  3. pattern matching

 

It's probably quite simple, but I am struggling on this, so help would be appreciated.

 

Thanks

Raj