Y
Hacker News
new
|
ask
|
show
|
jobs
by
ink
1283 days ago
I believe you can do this in Python
1 comments
ducharmdev
1283 days ago
Yup, you can. Also in Clojure, like this:
(< 1 2 3 4 5 6) => true
link
codeflo
1283 days ago
How do you do the (IMO common) 0 <= index < length?
link
unlogic
1283 days ago
This you can't do, unfortunately. Would have to do something stupid like `(< -1 index length)`.
link
(< 1 2 3 4 5 6) => true