Amount.splitEvenly - corda

corda / net.corda.core.contracts / Amount / splitEvenly

# splitEvenly

`fun splitEvenly(partitions: Int): List<Amount<T>>`

This method provides a token conserving divide mechanism.

### Parameters

`partitions` - the number of amounts to divide the current quantity into.

Return
'partitions' separate Amount objects which sum to the same quantity as this Amount and differ by no more than a single token in size.