Idiomatically determine all the characters that can be used for symbols: Difference between revisions
Idiomatically determine all the characters that can be used for symbols (view source)
Revision as of 18:00, 26 May 2024
, 1 month ago→{{header|Wren}}: Oops, should have included digits in list of allowable symbols.
m (→{{header|Ada}}) |
(→{{header|Wren}}: Oops, should have included digits in list of allowable symbols.) |
||
Line 1,093:
<syntaxhighlight lang="wren">for (i in 97..122) System.write(String.fromByte(i))
for (i in 65..90) System.write(String.fromByte(i))
for (I in 48..57) System.write(String.fromByte(i))
System.print("_")</syntaxhighlight>
{{out}}
<pre>
abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_
</pre>
|