On Wed, Apr 18, 2012 at 12:32, Pierpaolo Bernardi <olopie...@gmail.com> wrote:

> maybe:
>
> (define (edit e k)
>  (cond ((key=? "right" k)
>         (if (zero? (string-length (editor-post e)))
>           e
>           <create an updated new editor>))
>        ((key=? "left" k)
>         (if (zero? (string-length (editor-pre e)))
>           e
>           <create an updated new editor>))
>        ...
>        ))
>
> ?

oops, no, disregard this advice. The problem is not what it looked at
first to me.

____________________
  Racket Users list:
  http://lists.racket-lang.org/users

Reply via email to