Exemplo n.º 1
0
 public static LNode TryGet(this LNode self, int key, LNode defaultValue) => TryGetExt.TryGet((ITryGet <int, LNode>)self, key, defaultValue);
Exemplo n.º 2
0
 // Workarounds: even though LNode includes ITryGet<int, LNode>, C# in 2020 is
 // too stupid to figure out how to call the overload for ITryGet<K, V>.
 public static Maybe <LNode> TryGet(this LNode self, int key) => TryGetExt.TryGet((ITryGet <int, LNode>)self, key);