[erlang-questions] Pattern-matching function?
Francois De Serres
fdeserres@REDACTED
Wed Oct 29 19:26:45 CET 2008
Thank you Richard.
Any way to overcome this with parsing/binding/eval magic, even cumbersome ?
> Francois De Serres wrote:
> > Hi there.
> >
> > I need a function that actually does pattern matching: pm(Tuple,
> Pattern)->MatchedPattern|error
>
> You cannot pass a pattern with uninstantiated variables to a function.
> Erlang is a strict functional language, it is not Prolog. Patterns are
> not run-time values.
>
> /Richard
--
"Feel free" - 5 GB Mailbox, 50 FreeSMS/Monat ...
Jetzt GMX ProMail testen: http://www.gmx.net/de/go/promail
More information about the erlang-questions
mailing list