This kata comes from here.
I realized doing this post after the code was written is quite difficult, as a lot of the juicy details stuff got refactored away. So please ask me if you don’t understand any section!
Premise:
Given a bunch of items, their price per item, and a special bulk discount...