func ~= (_ lhs: (Int) -> Bool, rhs: Int) -> Bool { lhs(rhs) } let v: Int = 2 switch v { case { $0.isMultiple(of: 2) }: print("Even") default: print("Odd") }