Tree Data Structure
Toggle table of contents
4.2.0
common
Target filter
common
Switch theme
Search in API
Skip to content
Tree Data Structure
Tree Data Structure
/
com.github.adriankuta.datastructure.tree
/
findNode
find
Node
fun
<
T
>
TreeNode
<
T
>
.
findNode
(
predicate
:
(
T
)
->
Boolean
)
:
TreeNode
<
T
>
?
(
source
)
Returns the first node (pre-order) whose value matches
predicate
, or
null
. Short-circuits.