Jewels and stones: Difference between revisions
→{{header|J}}: a simpler, though not quite identical implementation
(Jewels and stones in various dialects BASIC (QBasic, Run BASIC, True BASIC and Yabasic)) |
(→{{header|J}}: a simpler, though not quite identical implementation) |
||
Line 1,088:
</syntaxhighlight>
A simpler implementation, which satisfies the task requirements but does not explicitly ignore non-letters, would be:
<syntaxhighlight lang=J>jewels=: +/@e.</syntaxhighlight>
=={{header|Java}}==
|