Apress / programming-algorithms-lisp

Source Code for 'Programming Algorithms in Lisp' by Vsevolod Domkin
Other
77 stars 16 forks source link

`dwim-map` leaves first sequence out, system definition is missing one dependency #2

Open octaspire opened 2 years ago

octaspire commented 2 years ago

I created a pull request #1 to fix these issues.

Function dwim-map left the first sequence out from the mapping. This means, that (dwim-map '+ '(1 2 3) '(4 5 6)) resulted into value (4 5 6) and not the expected value of (5 7 9). Pull request #1 fixes this, and adds also a new unit test for the function. This unit tests detects the issue and prevents regression.

System definition was missing one dependency (flexi-streams) that was being used in file ch14-compression.lisp. This caused the loading of progalgs-system to fail, for example when running (ql:quickload :progalgs). Pull request #1 adds this missing dependency.

Pull request #1 updates also the version number and errata, and removes one unnecessary space from end of a line.

octaspire commented 2 years ago

I updated the pull request #1 to fix also method generic-elt (specialized on vector) from chapter 7. I added also unit test and errata entry for it. I changed also the commit message to include version number.