Avatar
Avatar
masakihori
@swift-main func ~= (_ lhs: (Int) -> Bool, rhs: Int) -> Bool { lhs(rhs) } let v: Int? = 2 switch v { case Optional.some{ $0.isMultiple(of: 2) }: print("Even") default: print("Odd") }
swiftNightly BOT 1/30/2025 9:14 AM
Even