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
The ensure method is a lovely addition to collections, especially after a flatten. I do have an issue with the return type.
Currently it says static<mixed, TEnsureOfType>, but why the mixed? There is a TKey template variable available. So shouldn't it be static<TKey, TEnsureOfType> or am I missing something?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
The
ensure
method is a lovely addition to collections, especially after aflatten
. I do have an issue with the return type.Currently it says
static<mixed, TEnsureOfType>
, but why themixed
? There is aTKey
template variable available. So shouldn't it bestatic<TKey, TEnsureOfType>
or am I missing something?Beta Was this translation helpful? Give feedback.
All reactions