On Tue, Jul 4, 2017 at 7:21 AM, David Baraff <[email protected]> wrote:
>
> func decoded(_ input: Any) -> Set {
> if let listVal = input as? [Set.Element] {
> return Set(listVal)
> }
> return self
> }
>
>
This looks a little weird — what is `self` here? It might be more
appropriate to use a `static func` or even a failable `init?`.
_______________________________________________ swift-users mailing list [email protected] https://lists.swift.org/mailman/listinfo/swift-users
