apply

Iterate this dsymbol or members of this scoped dsymbol, then call fp with the found symbol and params.

int
apply
(
FP
Params...
)
(,
FP fp
,
Params params
)

Parameters

symbol Dsymbol

the dsymbol or parent of members to call fp on

fp FP

function pointer to process the iterated symbol. If it returns nonzero, the iteration will be aborted.

params Params

any parameters passed to fp.

Return Value

Type: int

nonzero if the iteration is aborted by the return value of fp, or 0 if it's completed.

Meta