Rosetta Code/Count examples: Difference between revisions

m
→‎{{header|J}}: update changed utility name
m (→‎{{header|Java}}: Forgot to remove the incorrect template)
m (→‎{{header|J}}: update changed utility name)
Line 204:
=={{header|J}}==
'''Solution:'''<br>
Using <code>getTasksgetCategoryMembers</code> from [[Find unimplemented tasks#J|Find unimplemented tasks]].
<lang j>require 'web/gethttp'
 
getAllTaskSolnCounts=: monad define
tasks=. getTasksgetCategoryMembers 'Programming_Tasks'
counts=. getTaskSolnCounts &> tasks
tasks;counts
Line 228:
'''Example Usage:'''
<lang j> formatSolnCounts getAllTaskSolnCounts ''
100 doors: 4661 examples.
9924 Bottles of Beergame: 6215 examples.
Abstract24 typegame Player: 1711 examples.
Ackermann99 FunctionBottles of Beer: 5276 examples.
...</lang>
 
892

edits