Rosetta Code/Find unimplemented tasks: Difference between revisions
Rosetta Code/Find unimplemented tasks (view source)
Revision as of 00:26, 1 February 2017
, 7 years agono edit summary
No edit summary |
|||
Line 1,265:
(rosettaCategory "Programming_Tasks")
(rosettaCategory Task) ) )</lang>
=={{header|PowerShell}}==
I don't think this script follows the spirit of the task, but it works.
<lang PowerShell>
function Find-UnimplementedTask
{
[CmdletBinding()]
[OutputType([string[]])]
Param
(
[Parameter(Mandatory=$true,
Position=0)]
[string]
$Language
)
$url = "http://rosettacode.org/wiki/Reports:Tasks_not_implemented_in_$Language"
$web = Invoke-WebRequest $url
$unimplemented = 1
[string[]](($web.AllElements |
Where-Object {$_.class -eq "mw-content-ltr"})[$unimplemented].outerText -split "`r`n" |
Select-String -Pattern "[^0-9A-Z]$" -CaseSensitive)
}
</lang>
<lang PowerShell>
$tasks = Find-UnimplementedTask -Language PowerShell
$tasks[0..5],".`n.`n.",$tasks[-6..-1]
Write-Host "`nTotal unimplemented Tasks: $($tasks.Count)"
</lang>
{{Out}}
<pre>
15 Puzzle Game
2048
24 game/Solve
4-rings or 4-squares puzzle
9 billion names of God the integer
AKS test for primes
.
.
.
Xiaolin Wu's line algorithm
Yahoo! search interface
Yin and yang
Zebra puzzle
Zeckendorf arithmetic
Zhang-Suen thinning algorithm
Total unimplemented Tasks: 388
</pre>
== {{header|Python}} ==
|