Anonymous user
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, 21 March 2014
, 10 years ago→{{header|Perl 6}}: add entry
m (removed a blank line.) |
(→{{header|Perl 6}}: add entry) |
||
Line 16:
* [[Idiomatically_determine_all_the_lowercase_and_uppercase_letters|Idiomatically determine all the lowercase and uppercase letters]].
<br>
=={{header|Perl 6}}==
Any Unicode character or combination of characters can be used for symbols in Perl 6. here's some counting rods and some cuneiform:
<lang perl6>sub postfix:<𒋦>($n) { say "$n trilobites" }
sub term:<𝍧> { unival('𝍧') }
𝍧𒋦</lang>
{{out}}
<pre>8 trilobites</pre>
=={{header|Python}}==
|