refactor: move BoxedValue to util
This commit is contained in:
parent
64e6ccf08b
commit
1fa2a9bc10
5 changed files with 15 additions and 12 deletions
|
|
@ -0,0 +1,9 @@
|
|||
package moe.lava.banksia.util
|
||||
|
||||
class BoxedValue<T>(val value: T) {
|
||||
operator fun component1() = value
|
||||
|
||||
companion object {
|
||||
fun <T> T.box() = BoxedValue(this)
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue