Hi i’m propably just bad at googling, but I couldn’t find the operator for ∈ (is an element of).
As example for what I would like to do:
(
if( x ∈ [1,…,n], {then}, {else});
)
Thanks
like this…
(1..n).includes(x)
2 Likes
perfect thanks. There is no symbol for this?
Nope, unicode characters are still the exceptions in programming languages (I think). The only language that I have used that supports such a feature is Julia.
1 Like