#Empty array/slice wildcard?

1 messages · Page 1 of 1 (latest)

velvet spruce
#

zig doesn't do wildcards of any kind

#

use &.{} and that'll work

rich sandal
#

show code

#

how are you populating the array?

cedar axle
#

&.{} can only be assigned to mutable slices when empty, either use const slices or you need to decide where to store the slice elements