Can you initialize Sets with assigned value in Silver?


(John Perez) #1

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?


(John Perez) #2

Or is this not possible because the Set class in Silver’s Swift Base Library has a different behavior/API from Apple’s?


(marc hoffman) #4

This probably just needs an init that take an array, isn Swift Base Library. I’ll add one.


(marc hoffman) #5

Done.