Or

public protocol Or[Other = Self]

Raw protocol backing the or keyword operator.

As with And, other is a thunk so the right-hand side can be skipped when self already determines the result.

Associated Types

type Output

Methods

func logicalOr(() -> Other) -> Output

Returns self or other(). The closure runs only if needed.

Defined in lang/std/core/logical.ks