You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the following OrderedDictionary function:
publicmutatingfunc updateValue<R>(
forKey key:Key,
insertingDefault defaultValue:@autoclosure()->Value,
at index:Int,
with body:(inoutValue)throws->R)
The defaultValue is an autoclosure, which is great, but it would be helpful if the index was also an autoclosure to prevent a possibly expensive index calculation if the key already exists.
The text was updated successfully, but these errors were encountered:
I'm using the following OrderedDictionary function:
The defaultValue is an autoclosure, which is great, but it would be helpful if the index was also an autoclosure to prevent a possibly expensive index calculation if the key already exists.
The text was updated successfully, but these errors were encountered: