Element - Þ…
- Evenly Distribute
Description
Evenly distribute a number over elements of a list
Overloads
list-num
-[i + b // len(a) for i in a], with any excess added to the last element, such that the sum of the list increases by b
Examples
⟨1|2|3⟩ 6 Þ…
=⟨3|4|5⟩
⟨1|2|3⟩ 5 Þ…
=⟨3|4|4⟩
⟨0|0|0⟩ -4 Þ…
=⟨-1|-1|-2⟩