apply Difference At Index
open fun applyDifferenceAtIndex(difference: Money, index: Int, allocations: List<Money>): List<Money>(source)
Apply the difference in the specific index of the allocations list.
Return
The allocation result.
Parameters
difference
A Money amount representing the difference to allocate in the allocations list.
index
The index to allocate the difference.
allocations
The allocations list.