get("#349") -- table functions
-- without bridge stuff & invalidated
function printShortenedReferenceTree(id, indent, seen, result)
if seen[id] then
table.insert(result, indent..id.." (see above)")
else
title = getSnippetTitle(id)
if not (title:find("^Need bridge ") or title:find("^A bridge ") or title:find("^A master bridge ") or hasNTTitle("Invalidate "..id)) then
table.insert(result, indent..id.. " - "..title)
seen[id] = true
local refs = getTitleReferences(id)
--print("Refs: "..tableToString(refs))
for r in all(refs) do
printShortenedReferenceTree(r, indent.." ", seen, result)
end
end
end
end
Began life as a copy of #536
test run test run with input download show line numbers
Travelled to 12 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
2 comment(s) hidden. show
| Snippet ID: | #537 |
| Snippet name: | printShortenedReferenceTree |
| Eternal ID of this version: | #537/1 |
| Text MD5: | 39af984a29aa73b8c8c1af8a99143fcf |
| Author: | stefan |
| Category: | |
| Type: | Lua code |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2015-03-15 04:25:04 |
| Source code size: | 699 bytes / 20 lines |
| Pitched / IR pitched: | No / Yes |
| Views / Downloads: | 1984 / 327 |
| Referenced in: | [show references] |