Kotlin array function find

i am currently new to kotlin , now stuck in kotlin find funtion array.find() in official documents page they described with inline function so i cant understand please tell me how can i use such functions like mentioned in kotlin official documents

inline fun Array.find(
predicate: (T) -> Boolean
): T?

I don’t quite understand your questions. What are you trying to do? Do you want to know how to call such a function?

val array = arrayOf(1, 2, 3, 4)
val two = array.find { it == 2 }

You might want to take a look at this

If this isn’t what you wanted to know can you maybe try to describe your problem again or show an example of what you want to do?

I think that is what he wanted to know. He probably googled for “how to call inline function” and couldn’t find an answer because his question was wrong.

got it , these are high order function LAMBDAS thank u alot