unofficial mirror of guile-user@gnu.org 
 help / color / mirror / Atom feed
From: Matt Wette <matthew.wette@verizon.net>
To: guile-user@gnu.org
Subject: Re: regex-case
Date: Sat, 06 Feb 2016 11:23:12 -0800	[thread overview]
Message-ID: <FEE33A40-BC12-4491-8155-9767907003FA@verizon.net> (raw)
In-Reply-To: <61E420AD-70B6-4DEA-A7DD-EB123E22EFD0@verizon.net>


> On Feb 6, 2016, at 11:13 AM, Matt Wette <matthew.wette@verizon.net> wrote:
> If not a macro could be written to generate a match function which can memoize the make-regexp part.
> (define regex-matcher foo ((<pattern> …) 
> => 
> (define (let ((t-123 (make-regex <pattern>)) …) (lambda (str) (cond ((regexp-exec t-123 str) ...

oops.  Should read:

(define-regex-matcher foo ((<pattern> …)
=>
(define foo 
   (let ((t-123 (make-regexp <pattern>)) …) 
      (lambda (str) 
        (cond ((regexp-exec t-123 str) … (else <body>))))) 





  reply	other threads:[~2016-02-06 19:23 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-06 19:13 regex-case Matt Wette
2016-02-06 19:23 ` Matt Wette [this message]
2016-02-06 19:49 ` regex-case Marko Rauhamaa
2016-02-06 22:42   ` regex-case Matt Wette
2016-02-07  8:15     ` regex-case Marko Rauhamaa
2016-02-06 22:10 ` regex-case Matt Wette
2016-02-08 14:29 ` regex-case Ludovic Courtès
2016-02-11  1:19 ` regex-case Matt Wette

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=FEE33A40-BC12-4491-8155-9767907003FA@verizon.net \
    --to=matthew.wette@verizon.net \
    --cc=guile-user@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).