Join Slack
Powered by
Why do functions like `public inline fun <T>...
# language-proposals
t
thijs
05/06/2016, 8:23 AM
Why do functions like
public inline fun <T> List<T>.indexOfFirst(predicate: (T) -> Boolean): Int
return
-1
when the predicate does not match. I think it would make much more sense returning
Int?
Open in Slack
Previous
Next