nerdamer
nerdamer copied to clipboard
Intervals
Solutions to inequalities (#251) would be intervals, such as [-Infinity, 0] and (0, 1]. The closed interval 's syntax is the same as a vector, so some disamiguating syntax would be used.
The in operator (x in interval) or function (in(x, interval)) would return 1 (or true?) when x is in interval or 0 (or false?) when x is outside the interval. An extension to #252.
Quoted from issue #252. The issue has been moved here
The in operator may have to be a function and not an actual operator. Something like
in(vector, item)
The return would be 1 for true and 0 for false.