an open source interpreter for the Kernel Programming Language.
git clone http://git.hanabi.in/repos/klisp.git
Log | Files | Refs | README

commit 0abe7d6823874577794e85502f761ea433567414
parent 6d15ebe62a5b25fc7935c618e8b130c216ef730d
Author: Andres Navarro <canavarro82@gmail.com>
Date:   Thu, 14 Apr 2011 14:34:27 -0300

Added note to ask John about reduce vs fold.

Msrc/kgpairs_lists.c | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/kgpairs_lists.c b/src/kgpairs_lists.c @@ -905,6 +905,12 @@ void do_reduce(klisp_State *K, TValue *xparams, TValue obj) } /* 6.3.10 reduce */ +/* ASK John: There should probably be a clarification to reduce comparing + with fold like in Haskell, r6rs and srfi-1 (all of which have the + mentioned in the report, left/right distintion). + srfi-1 also defines reduce-left/reduce-right that work as in + kernel. The difference is the use or not of the id value if the list + is not null */ void reduce(klisp_State *K, TValue *xparams, TValue ptree, TValue denv) { UNUSED(xparams);