jscl-project / jscl

A Lisp-to-JavaScript compiler bootstrapped from Common Lisp

Home Page:https://jscl-project.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

reduce passes initial-value in the wrong order for single element sequences

davazp opened this issue · comments

For example:

(reduce 'cons '(1) :initial-value 0)

should be (0 . 1) but it evaluates to (1 . 0).

The behaviour is correct for longer lists.