Return a Stack with the Boxes that can be stacked on 'bottom'.
(self, bottom)
| 50 | """ An immutable (and hashable) set of Boxes. """ |
| 51 | |
| 52 | def stackable_on(self, bottom): |
| 53 | """ Return a Stack with the Boxes that can be stacked on 'bottom'. """ |
| 54 | return Stack(box for box in self if box < bottom) |
| 55 | |
| 56 | def subtract(self, box): |
| 57 | """ Return a new Stack with 'box' removed. """ |