3 ms·
Simple example of mine: def tree_size(n: Node) -> int: if not n: return 0 return 1 + tree_size(n.left) + tree_size(n.right) would be: funk tr
by sterlind 5y ago
Simple example of mine:
def tree_size(n: Node) -> int:
if not n:
return 0
return 1 + tree_size(n.left) + tree_size(n.right)
would be:
funk tree size takes near type cap node returns int slap
if op not near next return zero slap zing
return op one plus call tree size pass near dot left
op plus call tree size pass near dot right
commands like "funk", "op" and "if" insert snippets
slap = end enter, zing = shift tab, next = move to next snippet placeholder, near = letter n
still a work in progress as I find ways to make it flow better.