AndWass / pushgen

Apache License 2.0
27 stars 4 forks source link

Add `.flat_map()` #29

Closed epage closed 3 years ago

epage commented 3 years ago

Implementing .flat_map() is a bit of a journey because I wanted to implement this like the stdlib (even ordering them the same in Ext as Iterator), which meant adding IntoGenerator and modifying .flatten() to take it. from_iter() was from a failed experiment towards this.

All steps in this journey are broken out into individual commits for perusing convenience.

Potential next steps:

epage commented 3 years ago

All set.

AndWass commented 3 years ago

Thanks! Very nice work! Much appreciated!