# Using Unicode characters like \to and \ne instead of -> and !=

I just discovered that I can use Unicode characters like \to and \ne instead of -> and !=. Is anyone using them in their daily coding? In official Julia packages?

it’s used quite a lot everywhere, even in Base you already can do:

julia> 1 ∈ [1,2,3]
true

julia> Set(1:2) ∪ Set(2:4)
Set{Int64} with 4 elements:
4
2
3
1

julia> Set(1:2) ∩ Set(2:4)
Set{Int64} with 1 element:
2

2 Likes

And even

julia> (1:2) ∪ (3:4)
4-element Array{Int64,1}:
1
2
3
4

2 Likes

I use \notin quite a bit, find it to be more compact than !(a in b)

3 Likes