Table of Contents

Method ContainsAnyInRange

Namespace
Zyl.ExSpans
Assembly
ExSpans.dll

ContainsAnyInRange<T>(ExSpan<T>, T, T)

Searches for any value in the range between lowInclusive and highInclusive, inclusive, and returns true if found. If not found, returns false.

public static bool ContainsAnyInRange<T>(this ExSpan<T> span, T lowInclusive, T highInclusive) where T : IComparable<T>

Parameters

span ExSpan<T>

The span to search.

lowInclusive T

A lower bound, inclusive, of the range for which to search.

highInclusive T

A upper bound, inclusive, of the range for which to search.

Returns

bool

Type Parameters

T

ContainsAnyInRange<T>(ReadOnlyExSpan<T>, T, T)

Searches for any value in the range between lowInclusive and highInclusive, inclusive, and returns true if found. If not found, returns false.

public static bool ContainsAnyInRange<T>(this ReadOnlyExSpan<T> span, T lowInclusive, T highInclusive) where T : IComparable<T>

Parameters

span ReadOnlyExSpan<T>

The span to search.

lowInclusive T

A lower bound, inclusive, of the range for which to search.

highInclusive T

A upper bound, inclusive, of the range for which to search.

Returns

bool

Type Parameters

T