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
{{ message }}
This repository has been archived by the owner on Mar 29, 2018. It is now read-only.
That's because the first parameter of indexOf has to be explicitly declared as UInt (i.e.: array.indexOf(UInt(1))) otherwise the compiler assumes it is an Int.
Your Array.indexOf doesn't work with array of type UInt, in which case it will always return nil.
The text was updated successfully, but these errors were encountered: