Swift “Algorithms” Package
I’m excited to announce Swift Algorithms, a new open-source package of sequence and collection algorithms, along with their related types.
Algorithms are powerful tools for thought because they encapsulate difficult-to-read and error-prone raw loops. The
Algorithms
package includes a host of powerful, generic algorithms frequently found in other popular programming languages. We hope this new package will help people embrace algorithms, improving the correctness and performance of their code.[…]
It’s our ambition for the standard library to include a rich, pragmatic set of generic algorithms. We think the
Algorithms
package can help realize this goal by serving as a low-friction venue to build out new families of related algorithms—giving us an opportunity to iteratively explore the problem space and learn how different algorithms connect and interact—before graduating them into the standard library.
I love how each one is documented and includes links to the source and tests.
Previously:
1 Comment RSS · Twitter
Does that mean there at last will be "blessed" binary search for collections?