Anyone knows how to program in LISP
the function match ( pattern matching)
exp : (match '(?X 2 G) '(ABC 2 G))
returns : ( (X ABC))
--
Marc Moukarzel
T�l (GSM) : 06 16 50 46 61
18, rue Edmond About
92350 - Le Plessis Robinson
http://perso.wanadoo.fr/marcm
In article <············@wanadoo.fr>, "Marc M" <·····@wanadoo.fr>
wrote:
> Anyone knows how to program in LISP
> the function match ( pattern matching)
Sure. See for example chapter 6.2 in Peter Norvig's
book "Paradigms of Artificial Intelligence Programming".
You can download the Lisp code from his website:
http://www.norvig.com/paip.html
> exp : (match '(?X 2 G) '(ABC 2 G))
> returns : ( (X ABC))
--
Rainer Joswig, Hamburg, Germany
Email: ·············@corporate-world.lisp.de
Web: http://corporate-world.lisp.de/