15 releases

new 0.3.4 Apr 22, 2025
0.3.3 Feb 21, 2025
0.3.1 Jan 27, 2025
0.2.10 Sep 29, 2024
0.1.1 Jun 24, 2024

#96 in No standard library

Download history 134/week @ 2025-01-10 8/week @ 2025-01-17 112/week @ 2025-01-24 38/week @ 2025-01-31 11/week @ 2025-02-07 110/week @ 2025-02-14 185/week @ 2025-02-21 25/week @ 2025-02-28 6/week @ 2025-03-07 15/week @ 2025-03-14 3/week @ 2025-03-21 3/week @ 2025-03-28 38/week @ 2025-04-04 24/week @ 2025-04-11

68 downloads per month

MIT license

43KB
1K SLoC

Implement commonly used combinations of Iterator::map

Examples

# use itermaps::MapExt;
let arr = [[1, 2], [3, 4]];
let first: Vec<i32> = arr.iter().map_index(0).copied().collect();
assert_eq!(first, [1, 3]);

let arr = ["foo", "bar"];
let arr1: Vec<String> = arr.into_iter().map_to_owned().collect();
assert_eq!(arr1, arr);

No runtime deps

Features