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

dfn/< operator should behave like Clojure's < operator #46

Closed
cnuernber opened this issue Nov 20, 2021 · 0 comments
Closed

dfn/< operator should behave like Clojure's < operator #46

cnuernber opened this issue Nov 20, 2021 · 0 comments

Comments

@cnuernber
Copy link
Owner

Currently providing more arguments than 2 to dfn/< results in an error. This is in general a useful paradigm in clojure, however, as you can type:

(< 0 x 15)

And get back a boolean that indicates of x is between 0 and 15, exclusive. This would logically extend to <,<=,>, >=. In those cases there is an implicit and of the resulting operations taken in order, so (< 0 x) && (< x 15) in the example above.

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

No branches or pull requests

1 participant