optima icon indicating copy to clipboard operation
optima copied to clipboard

Assoc pattern not evaluating :test

Open dfmorrison opened this issue 9 years ago • 0 comments

The following example from the documentation fails when actually run against Optima:

CL-USER> (optima:match '(("a" . 123))
           ((assoc "A" 123 :test #'string-equal) t))

It complains about "#'STRING-EQUAL is not a function name or lambda expression". That is, it appears that, while the documentation implies the value of :test is evaluated, it is not being evaluated. And, indeed, the following seems to work:

CL-USER> (optima:match '(("a" . 123))
           ((assoc "A" 123 :test string-equal) t))
T

dfmorrison avatar Jul 28 '16 16:07 dfmorrison