how can i programaticaly replace one item in a list with two or more? I'm doing it with splits and indexes, and it looks very un-python.
I'm wishing something like this exists:
values = [ "a", "b", "old", "c" ]
[ yield ["new1", "new2"] if item == "old" else item for item in values ]
// return [ "a", "b", "new1", "new2", "c" ]