Skip to content

System.Collections.Generic.ListExtensions.BinaryIntervalSearch

Morten Aune Lyrstad edited this page Apr 16, 2022 · 29 revisions

IndexNamespace IndexListExtensions

Summary

public static int BinaryIntervalSearch<T>(this IList<T> self, T value, IComparer<T> comparer = default)

Returns

int

Parameters

Summary

public static int BinaryIntervalSearch<T>(this IList<T> self, Func<T, bool> less)

Returns

int

Parameters

Summary

public static int BinaryIntervalSearch<T>(this IList<T> self, T value, Comparison<T> comparison)

Returns

int

Parameters

  • IList<T> self
  • T value
  • Comparison<T> prohibited comparison
Clone this wiki locally