allocate

open fun allocate(money: Money, ratios: List<Percentage>): Result(source)
open fun allocate(money: Money, vararg ratios: Percentage): Result(source)

Allocates a Money in ratios.

Return

A Result with the allocation result.

Parameters

money

The Money amount to allocate.

ratios

The ratios to allocate.

Throws

When ratios contain elements with a negative value.