keep

fun keep(selector: (Name) -> Boolean)

Keep all items with name satisfying the criteria

fun keep(name: Name)

Keep specific item (including its descendants)

fun keep(regex: String)

Keep nodes by regex