Converts the given element or array of elements into a refa CharSet.
If an array is given, all the character sets of all elements will be unioned. This means that for any two element a
and b, the results of toCharSet([a, b]) and toCharSet(a).union(toCharSet(b)) will be the same.
This is guaranteed to be equivalent to toUnicodeSet(char).chars.
Converts the given element or array of elements into a refa
CharSet
.If an array is given, all the character sets of all elements will be unioned. This means that for any two element
a
andb
, the results oftoCharSet([a, b])
andtoCharSet(a).union(toCharSet(b))
will be the same.This is guaranteed to be equivalent to
toUnicodeSet(char).chars
.