Manual erratum: example in `index`

Notices and updates
Post Reply
rickyboy
Posts: 595
Joined: Fri Apr 08, 2005 7:13 pm
Location: Front Royal, Virginia

Manual erratum: example in `index`

Post by rickyboy »

As reported by github user fuxoft in https://github.com/kosh04/newlisp/issues/3.
In 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/newlis ... html#index
(λx. x x) (λx. x x)

Post Reply