Groups | Search | Server Info | Login | Register
Groups > comp.lang.scheme > #6520
| From | "B. Pym" <Nobody447095@here-nor-there.org> |
|---|---|
| Newsgroups | comp.lang.lisp, comp.lang.scheme |
| Subject | Re: a hardware Lisp interpreter |
| Date | 2025-07-19 03:58 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <105f553$2i1aj$1@dont-email.me> (permalink) |
Cross-posted to 2 groups.
Levi Campbell wrote:
> (defun lookup-variable (search-name)
> (loop for (name . value) in *variables* do
> (when (eql name search-name)
> (return-from lookup-variable value))))
Gauche Scheme:
(use srfi-42) ;; first-ec
(use util.match)
(define (lookup search-name)
(first-ec #f
(:list e Variables)
(begin (match-define (name . value) e))
(if (eqv? search-name name))
value))
--
[T]he problem is that lispniks are as cultish as any other devout group and
basically fall down frothing at the mouth if they see [heterodoxy].
--- Kenny Tilton
The good news is, it's not Lisp that sucks, but Common Lisp. --- Paul Graham
Back to comp.lang.scheme | Previous | Next | Find similar
Re: a hardware Lisp interpreter "B. Pym" <Nobody447095@here-nor-there.org> - 2025-07-19 03:58 +0000
csiph-web