I am a bit curious:
When I have a concrete type I can just use someSet.contains(element)
, when this type is generic compiler will require me invoking the Set.contains(someSet, element)
Set.swift
in SwiftBaseLibary by itself does not define such static method, which means that compiler mirrors the non-static generic methods to static. Why does it need to be this way?