#idea-tag-namesOne idea’s tag names, as a flat array.
#import "@rookery/core:0.1.0": idea, idea-tag-names
#idea("etal", title: [Et al.], tags: (note: none, draft: none, priority: 1))[
Attribution flattens a crowd into one name.
]
#context idea-tag-names("etal") // -> ("note", "draft", "priority")Every key, valued tags included — priority comes back alongside the two plain tags, because a tag carrying metadata is still a tag. This is the question of what an idea is tagged, not of what those tags hold. Key order is unspecified.
() comes back both for an untagged idea and for a name that does not exist. A missing idea is not an error here: a caller asking what something is tagged is filtering, not dereferencing. Must be called inside #context.
Where you are walking the whole rookery, read the tags field off #ideas instead: this resolves the registry once per idea, where #ideas resolves it once for the pass.