Skip to main content

Module budget

Module budget 

Source
Expand description

Size budgets over ordered items.

A budget keeps each item that still fits within a limit together with the items kept before it, without reordering anything, so the same items always yield the same selection.

Functionsยง

budget
Marks each item, in order, Ok while its size fits within limit together with the items kept before it, and Err otherwise.