A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.scala-lang.org/api/current/scala/collection/Searching$.html below:

Searching

scala.collection.Searching

Members list

The result of performing a search on a sorted sequence, where the element was found.

The result of performing a search on a sorted sequence, where the element was found.

Value parameters
foundIndex

the index corresponding to the element searched for in the sequence

Attributes
Source
Searching.scala
Supertypes

The result of performing a search on a sorted sequence, where the element was not found

The result of performing a search on a sorted sequence, where the element was not found

Value parameters
insertionPoint

the index where the element would be inserted in the sequence

Attributes
Source
Searching.scala
Supertypes

The result of performing a search on a sorted sequence

The result of performing a search on a sorted sequence

Example usage:

val list = List(1, 3, 4, 5) // list must be sorted before searching
list.search(4) // Found(2)
list.search(2) // InsertionPoint(1)
Attributes
Source
Searching.scala
Supertypes
Known subtypes
Attributes
Deprecated
[Since version 2.13.0] Search methods are defined directly on SeqOps and do not require scala.collection.Searching any more
Source
Searching.scala
Supertypes
Attributes
Deprecated
[Since version 2.13.0] Search methods are defined directly on SeqOps and do not require scala.collection.Searching any more
Source
Searching.scala

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4