def rebind
import bolt@1.27.0.0/src/rules/table.bend as Tableimport Base
178# after a let of `nm`: it holds a table only when this binding is one
179def rebind(+nm: String, +tab: Bool, +live: List<&2, String>) -> List<&2, String>:
180 +out = drop(live, nm)
181 Bool.pick(List<&2, String>, String.is_empty(nm), live,
182 Bool.pick(List<&2, String>, tab, nm <> out, out))