Skip to content
Select theme

Working with collections

Nearly every program is a loop over a collection with something counted, sorted or looked up. This chapter is that work: the Vec operations you will actually use, the entry API on a HashMap, and a decision table for when the answer is not Vec.

Start with the decision table if you are choosing, or with the specific error if you already have one.