On Mon, Dec 28, 2015 at 10:46:34PM +0100, Christophe Gragnic wrote:
> Hi all,
> Sorry for this cryptic subject. I couldn't find a better one.
> So here is a snippet:
BTW, another issue:
It would be wise to stick with the PicoLisp coding conventions, to make
things more readable. This concerns capitalizing locally bound symbols
and proper indentation. With them, you code would be more like (not
(('((Code) # The symbol 'Code is bound to X only once.
('((Gen) (Gen Gen))
(println Code) # See the output from here.
(list 'if '(=0 N) 1 (list '* 'N (list Partial '(-
N 1)))) ) )
(list (cons 'quote Gen) (cons 'quote Gen)) ) ) ) )
5 ) # (fact 5) is correctly computed then printed.