English cardinal anagrams: Difference between revisions
Content added Content deleted
m (→{{header|J}}: added an "I got 680 at first too" comment) |
|||
Line 26: | Line 26: | ||
=={{header|J}}== |
=={{header|J}}== |
||
{{incorrect|J|Counts for English cardinal anagrams in 0 through 1000 and 0 through 10000 seem way off, though admittedly it is difficult to tell as nothing is labeled}} |
{{incorrect|J|Counts for English cardinal anagrams in 0 through 1000 and 0 through 10000 seem way off, though admittedly it is difficult to tell as nothing is labeled}} |
||
<small>PL: I also got 680 at first, from using sum(filter(lengths,">",1)) instead of length(filter(lengths,">",1)), but also 9228, not 9662...<br></small> |
|||
Using the definitions at [[Number_names#J]] and |
Using the definitions at [[Number_names#J]] and |
||
<syntaxhighlight lang=J>sample=: I.(e. ~. #~ 1<#/.~)/:~@uk&.> i. 1e6 |
<syntaxhighlight lang=J>sample=: I.(e. ~. #~ 1<#/.~)/:~@uk&.> i. 1e6 |