Manual erratum: example in `index`

Started by rickyboy, September 29, 2015, 08:13:36 AM

Previous topic - Next topic

rickyboy

As reported by github user https://github.com/fuxoft">fuxoft in https://github.com/kosh04/newlisp/issues/3">//https://github.com/kosh04/newlisp/issues/3.


QuoteIn the documentation of the "index" function, the last example line says:



(select '(1 10 3 6 4 5 11) '(1 3 6)) → (1 3 6)



This is wrong. The returned value is not (1 3 6) but (10 6 11).

The culprit can currently be spotted here:

http://www.newlisp.org/downloads/newlisp_manual.html#index">//http://www.newlisp.org/downloads/newlisp_manual.html#index
(λx. x x) (λx. x x)