refactor: move BoxedValue to util

This commit is contained in:
LavaDesu 2025-07-28 01:52:26 +10:00
parent 64e6ccf08b
commit 1fa2a9bc10
Signed by: cilly
GPG key ID: 6500251E087653C9
5 changed files with 15 additions and 12 deletions

View file

@ -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)
}
}