Переглядів 31,327
Apple's open source Swift Algorithms package comes with stacks of types and functions that help us write faster, simpler, safer Swift code. In this video I'm going to walk you through a handful of my favorite parts of the package so you can get started fast.
01:51 Chaining sequences
05:02 Chunking sequences
12:32 Random sampling
15:06 Striding over a sequence
17:48 Finding unique elements
21:10 Stripping out optionality
22:44 Improving nested loops
28:38 Sliding windows into sequences
31:00 Minimum and maximum
32:51 And there’s more!