dfinity / motoko-base

The Motoko base library
Apache License 2.0
483 stars 99 forks source link

Add `Iter.mapFilter` method #669

Open vporton opened 2 weeks ago

vporton commented 2 weeks ago

In HashMap there is mapFilter method, but in Iter such a method is missing.

That inconsistency calls to add mapFilter to Iter. It would also be a highly useful method (take how often a similar method filterMap is used in Rust!)