penny-lib-0.2.0.0: Extensible double-entry accounting system - library

Safe HaskellSafe-Infered

Penny.Cabin.Allocate

Synopsis

Documentation

allocateSource

Arguments

:: Ord k 
=> Map k Allocation

Maps arbitrary unique values to the allocations, so that you can look up the corresponding allocations.

-> Int

Allocated values will add up to this number.

-> Map k Int

The given number, allocated into proportional parts.

Divide up a whole number proportionally into several parts. The sum of the parts is guaranteed to add up to original number.