Closed DavidArno closed 7 years ago
The Dictionary class supports TryGetValue using an out parameter and bool return type.
Dictionary
TryGetValue
out
bool
Succinc<T> should provide a the following extension method:
Option<TValue> Dictionary<TKey, TValue>.TryGetValue(TKey key)
It should return none if the key doesn't exist and Option<TValue>.Some if it does.
none
Option<TValue>.Some
v2.3.0 released.
The
Dictionary
class supportsTryGetValue
using anout
parameter andbool
return type.Succinc<T> should provide a the following extension method:
It should return
none
if the key doesn't exist andOption<TValue>.Some
if it does.