capture

inline fun <T : Any> capture(lst: MutableList<T>): T
inline fun <T : Any> capture(lst: CapturingSlot<T>): T