import Foundation infix operator ?!: NilCoalescingPrecedence /// Throws the right hand side error if the left hand side optional is `nil`. func ?! (value: T?, error: @autoclosure () -> Error) throws -> T { guard let value = value else { throw error() } return value }