We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
func findIndex<T>(array: T[], valueToFind: T) -> Int? { for (index, value) in enumerate(array) { if value == valueToFind { return index } } return nil }
这里的函数参数array,类型应该为[T]。
array
[T]
The text was updated successfully, but these errors were encountered:
已修改,多谢!
Sorry, something went wrong.
Add reference for noasync in @available [SE-0340] (#352)
b000792
Fixes: rdar://142580634
No branches or pull requests
这里的函数参数
array
,类型应该为[T]
。The text was updated successfully, but these errors were encountered: