Idiomatically determine all the characters that can be used for symbols: Difference between revisions

(promoted to (full) task status.)
Line 224:
<lang jq>count("S"; 0; 1114112)</lang>
The result is 3958.
 
=={{header|Julia}}==
Julia allows almost any Unicode character as a symbol if it is not a reserved
operator symbol and, if numeric, if it is not the first letter of a symbol name.
 
For example, x2 is a valid identifier, but 2x is not-- it is interpreted as 2 times the identifier x..
 
So,
<lang julia>
for i in 1:0x200000 - 1
Symbol("x" * Char(i))
end
</lang>
works up to 0x200000 but not at Unicode 0x200000.
 
 
=={{header|Kotlin}}==
4,102

edits