Weird behaviour of "setdiff"

It returns distinct values, though it could be spelled out more in the docstring.

Construct the set of elements in s but not in any of the iterables in itrs. Maintain order with arrays.

julia> setdiff("aaa","b")
1-element Vector{Char}:
 'a': ASCII/Unicode U+0061 (category Ll: Letter, lowercase)

You can use filter instead

julia> filter(≠('_'), "_[11]")
"[11]"
3 Likes