import Foundation public func Condition(_ f: @autoclosure () -> Bool, _ pass: () -> R) -> R? { if f() { return pass() } else { return nil } }