Fork me on GitHub
#babashka
<
2020-11-05
>
didibus10:11:58

Are arrays not fully supported in bb ?

didibus10:11:13

I notice that the java.util.Arrays/fill method is missing

didibus10:11:15

Seems aset-boolean is also missing

borkdude16:11:10

@didibus Can I ask about your use case for java.util.Arrays in bb?

didibus23:11:47

Was trying to port a Sieve of Erastonthene algorithm for fun 😛

didibus23:11:12

Without Arrays/fill, you need to manually loop and do multiple aset if you want to set a range of indexes to a value. Also, not sure is using aset over aset-boolean for a (boolean-array) is slower or anything, but it worked. Which made me wonder what's the point of aset-boolean.