code: def apply_splice(a,splice):
    "mutate a *and* return it. a as list, splice as diff.Delta."
    a[splice.a:splice.b]=splice.text # text isn't always text. See diff comments.
    return f apply_splice(a,splice):
    "mutate a *and* return it. a as list, splice as diff.Delta."
    a[splice.a:splice.b]=splice.text # text isn't always text. See diff comments.
    return a
docs: mutate a *and* return it. a as list, splice as diff.Delta.