Share via


IRPayTaxCalcList.fold Method [AX 2012]

Applies a functor _functor to each element of the collection, threading an accumulator argument through the computation.

Function folds employee tax state list to integral type, that represents final calculated state.

The formal descriptiopn is ('State -> 'T -> 'State) -> 'State -> 'T list -> 'State.

Folder - The functor to update the state given the input elements.

Syntax

public Object fold(
    IRPayTaxCalcFunctor _functor, 
    Object _initialState, 
    Object _context)

Run On

Called

Parameters

Return Value

Type: Object Class
New state after applied element of the list to iunput state.

See Also

Reference

IRPayTaxCalcList Interface