firstNotNull

open fun <T> firstNotNull(@NotNull mapper: @NotNull (RenderedBone) -> T): @Nullable T

Finds the first non-null result of applying a mapper to all bones.

Return

the first non-null result, or null

Since

1.15.2

Parameters

mapper

the mapper function

<T>

the result type