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

Assoc pattern not evaluating :test #120

@dfmorrison

Description

@dfmorrison

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions