Rob Elliot
03/01/2023, 5:50 PMephemient
03/01/2023, 6:19 PMephemient
03/01/2023, 6:21 PM$ groovysh -cp kotlin-stdlib-1.8.10.jar
groovy:000> kotlin.UInt."box-impl"(-1)
===> 4294967295ephemient
03/01/2023, 6:23 PMRob Elliot
03/01/2023, 7:07 PMList<ValueType> and I need to test it in Spock, hence Groovy calling Kotlin.
I'm not sure if I can avoid them being boxed while keeping the Kotlin type... all I'm doing is listOf("1", "2").map { ValueType(it) }.toSet() and that seems to box them.Rob Elliot
03/01/2023, 7:09 PMephemient
03/01/2023, 7:19 PMValueTypeSet (as UIntArray does for UInt) that is represented by a Set<String> or whatever the val you're wrapping isephemient
03/01/2023, 7:19 PMRob Elliot
03/01/2023, 7:22 PM