allocate

open fun allocate(money: Money, parts: Int): Result(source)

Allocates a Money amount in even parts.

Return

A Result with the allocation result.

Parameters

money

The Money amount to allocate.

parts

The number of parts to allocate.

Throws

When parts is zero or negative.