8000 Add missing function /= · Issue #53 · skx/yal · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add missing function /= #53

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

Closed
skx opened this issue Oct 17, 2022 · 1 comment · Fixed by #59
Closed

Add missing function /= #53

skx opened this issue Oct 17, 2022 · 1 comment · Fixed by #59

Comments

@skx
Copy link
Owner
skx commented Oct 17, 2022

Again from the fine guide

The /= function, conversely, returns true only if all its arguments are different values.

(/= 1 1)        ==> NIL
(/= 1 2)        ==> T
(/= 1 2 3)      ==> T
(/= 1 2 3 1)    ==> NIL
(/= 1 2 3 1.0)  ==> NIL
@skx
Copy link
Owner Author
skx commented Oct 17, 2022

Interestingly that same section says the "(= 1 2 3 4 5 ... 9)" should work.

(i.e. We should add support for more than two operands.)

skx added a commit that referenced this issue Oct 17, 2022
The numerical-equality function "(=..)" previously supported only
two values.  Now we support multiple values.

This updates #53, but does not close it until we've implemented
the corresponding inequality test.
skx added a commit that referenced this issue Oct 17, 2022
This is a weird one, but it closes #53 by allowing a numerical
inequality test to be carried out:

* If any argument has been seen before, return false.
* If all arguments are unique, return true.

This closes #53.
@skx skx mentioned this issue Oct 17, 2022
@skx skx closed this as completed in #59 Oct 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant
0