infix
operator
|| {
associativity
left
precedence
110
}
Declarations
func || <T : BooleanType>(_: T, rhs: () throws -> Bool)
Declaration
func
||
<
T
:
BooleanType
>
(
lhs
:
T
, @
autoclosure
rhs
: ()
throws
-
>
Bool
) -
>
Bool
If
lhs
istrue
, return it. Otherwise, evaluaterhs
and return itsboolValue
.Declaration
func
||
<
T
:
BooleanType
,
U
:
BooleanType
>
(
lhs
:
T
, @
autoclosure
rhs
: ()
throws
-
>
U
) -
>
Bool