jackfirth / rebellion

A collection of core libraries for Racket
https://pkgs.racket-lang.org/package/rebellion
Apache License 2.0
80 stars 16 forks source link

Rework permutations API #523

Closed jackfirth closed 11 months ago

jackfirth commented 11 months ago

Adds a generic permute function and a permuting transducer, and replaces the existing type-specific permute functions with the generic one. Private type-specific implementations are still used internally as fast paths. Also, implements permutation-reverse.

This breaks backwards compatibility but as far as I know, almost nobody uses the permutations API anyway. The only known user already signed off on this change in #522.

jackfirth commented 11 months ago

cc @soegaard