Avatar
protocol Enum { static func associatedValue(_ value: String) -> Self static var singleValue: Self { get } } enum Foo: Enum { case associatedValue(String) case singleValue }
7:08 AM
enumのcaseをこんな感じでprotocolで表したい😫