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 needed to find the index of an element in array and for my case the first argument seems redundant.
Array.indexOf<Nat>(Int.abs(Time.now()), halvings, func(halving, now) { // I have to double check in base source code which arg is which
now < halving
})
Maybe add a new function Array.findIndex similar to Array.find?
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.
-
I needed to find the index of an element in array and for my case the first argument seems redundant.
Maybe add a new function
Array.findIndexsimilar toArray.find?Usage
Beta Was this translation helpful? Give feedback.
All reactions