Skip to content
This repository has been archived by the owner on Dec 29, 2018. It is now read-only.

Assoc pattern not evaluating :test #120

Open
dfmorrison opened this issue Jul 28, 2016 · 0 comments
Open

Assoc pattern not evaluating :test #120

dfmorrison opened this issue Jul 28, 2016 · 0 comments

Comments

@dfmorrison
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant