countParameters

abstract fun countParameters(predicate: (KoParameterDeclaration) -> Boolean): Int

Returns the number of parameters that satisfies the specified predicate present in the declaration.

Return

The number of parameters in the declaration.

Parameters

predicate

The predicate function to determine if a parameter satisfies a condition.