From: weber <hugows@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Scheme to elisp
Date: 16 May 2007 05:56:34 -0700 [thread overview]
Message-ID: <1179320194.826658.32840@p77g2000hsh.googlegroups.com> (raw)
Hi everyone...
I started reading the sample chapter of the Friedman's books, but got
stuck trying to rewrite this scheme function in elisp:
(define intersect
(lambda (set1 set2)
(letrec
((I (lambda (set)
(cond
((null? set) (quote ()))
((member? (cat set1) set2)
(cons (car set)
(I (cdr set))))
(else (I (cdr set)))))))
(I set1))))
Or in a simplified form, my problem is : why the snippet below does
not work?
(defun f (n)
(let ((g (lambda (x) (+ 5 x))))
(g (+ n 1))))
(f 1) -> void-function g
Thanks in advance,
-weber
next reply other threads:[~2007-05-16 12:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-16 12:56 weber [this message]
2007-05-16 15:58 ` Scheme to elisp Joost Kremers
2007-05-16 17:18 ` weber
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/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1179320194.826658.32840@p77g2000hsh.googlegroups.com \
--to=hugows@gmail.com \
--cc=help-gnu-emacs@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).