Re: more match() problems
- Posted by Mike Nelson <MichaelANelson at WORLDNET.ATT.NET> May 28, 2003
- 479 views
Derek Parnell wrote: <snip> > match() LOOKS FOR SLICES - ALWAYS. > find() LOOKS FOR ELEMENTS - ALWAYS. </snip> This is entirely correct and is as it should be. I would further emphasize that find() and match() only work at the top level. Since match() always looks for slices, an atom as the first parameter is and should be an error. An empty sequence as the first parameter is also an error--a return of 0 is preferable, as it would eliminate some special case checking from code using match(). -- Mike Nelson