def rebind

bolt@1.27.0.0 · src/rules/table.bend:178

import bolt@1.27.0.0/src/rules/table.bend as Table
import 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))

Uses (6)

Used by (1)