common-lisp icon indicating copy to clipboard operation
common-lisp copied to clipboard

Clarify array equality

Open verdammelt opened this issue 10 months ago • 0 comments

The test data and instructions could have led to confusion.

The previous instructions and code could lead someone to believe that an equality predicate other than equalp could work for the "loosely" function. However even with the previous test data that could not be since all equality predicates but equalp only consider arrays equal if they are eq. Only equalp checks the contents of the array for equality.

The mention of numeric type (and then not showing it in the test) was an unintentional red herring.

Both the test data and the instructions have been changed to (hopefully) make things clearer.

Fixes #798

[no important files changed]

verdammelt avatar Apr 03 '24 23:04 verdammelt