[Haskell-cafe] Emptying a list

Ketil Malde ketil+haskell at ii.uib.no
Sat Oct 15 02:06:05 EDT 2005


poogle at netspace.net.au writes:

> Hi there, I'm just wondering if there is a command for emptying a list?

Not really.  If you want an empty list, you can use [].

> Also, is there any way to incorporate list operations (concatenation in 
> particular) in a do-statement on lists? Every time I try it gives a
> type error. 

You can always include pure code in let statements, but I get the
feeling that's not quite what you are asking for.  Could you post your
non-working code? 
       
-k
-- 
If I haven't seen further, it is by standing in the footprints of giants



More information about the Haskell-Cafe mailing list