google / lisp-koans

Common Lisp Koans is a language learning exercise in the same vein as the ruby koans, python koans and others. It is a port of the prior koans with some modifications to highlight lisp-specific features. Structured as ordered groups of broken unit tests, the project guides the learner progressively through many Common Lisp language features.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

use a more consistent description of one function's docstring in mapcar-and-reduce.lsp?

JuanitoFatas opened this issue · comments

INCORRECT-FUNCTION-X in Line 77 may change to WRONG-FUNCTION-X to match the code below:

(define-test test-mapcar-and-reduce
    "mapcar and reduce are a powerful combination.
     insert the correct function names, instead of INCORRECT-FUNCTION-X
     to define an inner product."
  (defun inner (x y)
    (reduce #'+ (mapcar #'* x y)))
  (assert-equal 32 (inner '(1 2 3) '(4 5 6)))
  (assert-equal 310 (inner '(10 20 30) '(4 3 7))))

fixed. Thanks again.