Now that @autoclosure
is part of the parameter declaration as opposed to type, how does one declare that a function takes a variadic amount of autoclosures?
Before:
public func coalesce<T>(all : @autoclosure () -> T? ...) -> T? {
for f : () -> T? in all {
if let x = f() { return x }
}
return nil
}
After: ???