Swift Algorithms is an 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. With the Algorithms package’s initial set of sequence and collection operations, you can cycle over a collection’s elements, find combinations and permutations, create a random sample, and more. One inclusion is a pair of chunked methods, each of which break a collection into consecutive subsequences. One version tests adjacent elements to find the breaking point between chunks, you can use it to quickly separate an array into ascending runs.

Features

  • Engage the community earlier in the development process
  • Channel contributions towards active areas of focus
  • Solicit feedback informed by real-world usage
  • Coherently tackle large tracts of missing functionality
  • Partial sorting
  • Combinations / permutations
  • Mutating algorithms
  • Combining collections

Project Samples

Project Activity

See All Activity >

Categories

Algorithms

License

Apache License V2.0

Follow Swift Algorithms

Swift Algorithms Web Site

You Might Also Like
Get Avast Free Antivirus, our award-winning protection for all Icon
Get Avast Free Antivirus, our award-winning protection for all

Get advanced privacy protection beyond antivirus software

Avast Free Antivirus protects your computer against viruses and malware, and it helps you protect your home network against intruders.
Free Download
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Swift Algorithms!

Additional Project Details

Operating Systems

Windows

Programming Language

Swift

Related Categories

Swift Algorithms

Registered

2022-02-24