M lazy-lock.json M lua/custom/configs/lspconfig.lua M lua/custom/init.lua A lua/custom/journal.lua A nvim_venv/bin/Activate.ps1 A nvim_venv/bin/activate A nvim_venv/bin/activate.csh A nvim_venv/bin/activate.fish
13 lines
357 B
Python
13 lines
357 B
Python
from .core import exhaust, multiplex
|
|
from .traverse import top_down
|
|
|
|
|
|
def canon(*rules):
|
|
""" Strategy for canonicalization
|
|
|
|
Apply each branching rule in a top-down fashion through the tree.
|
|
Multiplex through all branching rule traversals
|
|
Keep doing this until there is no change.
|
|
"""
|
|
return exhaust(multiplex(*map(top_down, rules)))
|