Re: Curry patterns

From: Sebastian Fischer <sebf_at_informatik.uni-kiel.de>
Date: Wed, 15 Apr 2009 16:37:30 +0200

> I cannot judge from your example but maybe you simply want the
> following?
>
> parse <first pattern> = ...
> parse <second pattern> = ...

That would try the second rule even if the first matches.

   parse s = case s of
               <first pattern> -> ...
               <second pattern> -> ...

falls through.
_______________________________________________
curry mailing list
curry_at_lists.RWTH-Aachen.DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/curry
Received on Do Apr 16 2009 - 09:11:13 CEST

This archive was generated by hypermail 2.3.0 : Do Jun 20 2024 - 07:15:10 CEST