Module music_theory::utils::misc

source ·
Expand description

Collection of miscelllaneous functionality.

Functions§

  • Check if a slice is sorted. Somehow this is not stable in std…
  • Generate subsets of a slice. max_len is the maximum length of the subsets generated. No subsets larger than max_len will be generated. It’s a way to reduce output size. The output size of this grows really fast with the input size so be aware: 2, 5, 16, 65, 326, 1957, 13700, 109601, 986410, 9864101, 108505112.