filter

abstract fun filter(predicate: (F) -> Boolean): MessageFunctionRegistrar<F>

Creates a filtered view of this registrar.

Returns a new MessageFunctionRegistrar instance that only includes functions matching the provided predicate. This allows for creating scoped registrars without modifying the original registry.

Return

A new MessageFunctionRegistrar containing only the functions that match the predicate

Parameters

predicate

A function that tests each registered function; only functions for which the predicate returns true are included

Throws

if the predicate is null