Hi, it is the first time for me to ask questions in this discussion forum so if there is anything I miss please let me know so I can edit my topic.
I am curious about the fact that Kotlin API declares the same extension function
IndexOfFirst, which has the exact same logic, for multiple types of classes: in this case,
Below is the link for the code that I am referring to:
I simply thought having one function declared into
Iterable would be suitable enough, so I just wonder if there is specific reason why it is declared in two places.
Thanks in advance!