rewrite

inline fun <T> rewrite(action: (T) -> Unit)