Have you ever heard of the Swift Algorithms package? 🤨
It's an official package made by Apple which contains a lot of useful algorithms for sequences and collections!
So join me and together we'll explore every single function that this very useful package contains 👨🏻💻👩🏽💻
Link to the Swift Algorithms package 👉 https://github.com/apple/swift-algori...
CHAPTERS
00:00:00 – Intro
00:06:06 – combinations(ofCount:)
00:19:08 – permutations(ofCount:)
00:34:33 – rotate(toStartAt:)
00:43:30 – partition(by:)
00:58:22 – chain(_:,_:)
01:03:12 – cycled()
01:06:47 – joined(by:)
01:12:37 – product(_:,_:)
01:19:37 – compacted()
01:22:33 – randomSample(count:)
01:34:06 – striding(by:)
01:40:23 – suffix(while:)
01:42:30 – trimming(while:)
01:45:34 – uniqued()
01:47:10 – min(count:, sortedBy:) & max(count:, sortedBy:)
01:53:21 – adjacentPairs()
01:55:03 – chunked(by:)
01:59:21 – firstNonNil(_:)
02:03:07 – grouped(by:)
02:06:33 – indexed()
02:07:58 – interspersed(with:)
02:09:51 – keyed(by:)
02:12:02 – reductions(_:,_:)
02:16:27 – split(whereSeparator:)
02:20:40 – windows(ofCount:)
02:22:15 – Conclusion