Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The usefullness of EQUALP #7

Open
svetlyak40wt opened this issue Aug 26, 2019 · 0 comments
Open

The usefullness of EQUALP #7

svetlyak40wt opened this issue Aug 26, 2019 · 0 comments

Comments

@svetlyak40wt
Copy link
Collaborator

Among the 4 Lisp’s equality operators equalp may be the least used, but it has some really cool features:

  • it matches strings ignoring case (this is well-known, I suppose)
  • it also matches structs
  • it also matches vectors and arrays
  • and it matches hash-tables

The last 3 are really useful because unlike strings and other primitive types, there’s no specialized equality predicates for built-in structural types, so equalp fills this role.

(contributed by @vseloved).
(source: https://lisptips.com/post/53215108902/the-usefullness-of-equalp)

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

No branches or pull requests

1 participant