3 ms·
Relevant to this discussion, and not included in the linked repo as far as I can see.. A one-line tree in Python: def tree(): return defaultdict(tree) More he
by witten 9y ago
Relevant to this discussion, and not included in the linked repo as far as I can see.. A one-line tree in Python:
def tree(): return defaultdict(tree)
More here: https://gist.github.com/hrldcpr/2012250 https://gist.github.com/hrldcpr/2012250