Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Method

Find

func Find(value: T) -> Optional<T>

Declaring type: HashSet<T>
Module: System.Collections
Assembly: System.Runtime.dll
Source file: HashSet.rvn

Implements MutableSet<T>.Find

Returns the stored equivalent value using this set's comparer.

Parameters

Name Type Description
value T The value to match; never replaces an existing element.

Return value

Optional<T>

Some containing the stored value, or None if absent.