So, I've been exploring the foundations of Lisp some more :-) Reading through the older papers (and new ones too) has been a great bit of fun. In particular, I've been translating lambda notation
--
You received this message because you are subscribed to the Google Groups "Lisp Flavoured Erlang" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lisp-flavoured-e...@googlegroups.com.
To post to this group, send email to lisp-flavo...@googlegroups.com.
Visit this group at http://groups.google.com/group/lisp-flavoured-erlang?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.
That actually seems more correct, even if it generates errors. I think the problem is that you are passing in the *name* of a function, in this case successor, and then trying to call it. This is valid in CL but doesn't work in LFE. I am busy right now but will get back with a solution later. Try replacing 'succesor with (fun successor 1), which creates a lambda calling successor with one argument, and it should work. funcall only works on lambdas.
Robert
On 7 April 2013 21:45, Duncan McGreggor <dun...@cogitat.io> wrote:
Hey Mats,
I just tried the calls that you proved below, but they all return errors:exception error: #(unbound_symb one)
> (funcall (funcall (funcall one) successor) 0)
Here's my church.lfe file:
(defmodule church   ;
(defmodule church & nbsp;
(defmodule church &nb sp;  ;
That actually seems more correct, even if it generates errors. I think the problem is that you are passing in the *name* of a function, in this case successor, and then trying to call it.
This is valid in CL but doesn't work in LFE. I am busy right now but will get back with a solution later. Try replacing 'succesor with (fun successor 1), which creates a lambda calling successor with one argument, and it should work. funcall only works on lambdas.
Robert
On 7 April 2013 21:45, Duncan McGreggor <dun...@cogitat.io> wrote:
Hey Mats,
I just tried the calls that you proved below, but they all return errors:exception error: #(unbound_symb one)
> (funcall (funcall (funcall one) successor) 0)
Here's my church.lfe file:
(defmodule church   ;
(defmodule church & amp;nb sp;  ;