Y
Hacker News
new
|
ask
|
show
|
jobs
by
gbear605
2751 days ago
What if you wanted ‘if x>2 || x < -2’?
2 comments
thaumasiotes
2751 days ago
That's not exactly a challenge for the syntax...
if-not x[-2,2]
Just like you'd write x ∉ [-2,2] with pen and paper.
link
function_seven
2751 days ago
Not parent, but I would write
x)-2,2(
or
x![-2,2]
link