Rosetta Code/Tasks without examples: Difference between revisions

m
Line 343:
 
function gettaskdescriptions(numtoprint = 3)
tasks = String[]
page = "http://rosettacode.org/wiki/Category:Programming_Tasks"
body = String(HTTP.get(page).body)
tasks = [m.captures[1] for m in eachmatch(r"<li><a href=\"/wiki/([^\"]+)\"", body)]
push!(tasks, m.captures[1])
end
base = "http://rosettacode.org/wiki/"
for (i, task) in enumerate(tasks)
4,105

edits