eta.util.general.rec_replace

rec_replace(old, new, lst)[source]

Recursively replace some old value with a new value throughout a list.