The following
var mySet=Set([1,2,3])
work in Apple/Linux Swift for but not in Silver. What is the correct syntax for declaring a Set() object with an initialised value?
The following
var mySet=Set([1,2,3])
work in Apple/Linux Swift for but not in Silver. What is the correct syntax for declaring a Set() object with an initialised value?
Or is this not possible because the Set class in Silver’s Swift Base Library has a different behavior/API from Apple’s?
This probably just needs an init
that take an array, isn Swift Base Library. I’ll add one.
Done.