On Tue, Jul 4, 2017 at 7:21 AM, David Baraff <davidbar...@gmail.com> 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
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users

Reply via email to