Range.contains

Predicate that checks whether the specified value is inside this range.

struct Range(T)
bool
contains
(
T x
)

Parameters

x T

value to check

Return Value

Type: bool

true if this range includes x, false otherwise

Meta