Esempio n. 1
0
def match(org: Org, hpart: str):
    [node] = ([n for n in org.iterate() if hpart in n.heading])
    return node
Esempio n. 2
0
def find(org: Org, heading: str):
    [node] = ([n for n in org.iterate() if n.heading == heading])
    return node