in reply to Re: What's the best way to do a pattern search like this?
in thread What's the best way to do a pattern search like this?

If I don't mention it, someone else will. Don't suggest the use of map in a void context. You are taking the trouble to build a whole return list, which you just throw away. It is more efficient and idiomatic to use for for such tasks.
   MeowChow                                   
               s aamecha.s a..a\u$&owag.print
  • Comment on Re: Re: What's the best way to do a pattern search like this?

Replies are listed 'Best First'.
Re: Re: Re: What's the best way to do a pattern search like this?
by tachyon (Chancellor) on Jul 20, 2001 at 11:28 UTC

    Good point, I'll update the code. It's too much Golf you know, shaving those two chars by using map instead of for.

    cheers

    tachyon

    s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print