14 releases

0.3.3 Feb 21, 2025
0.3.2 Feb 19, 2025
0.3.1 Jan 27, 2025
0.2.10 Sep 29, 2024
0.1.1 Jun 24, 2024

#111 in No standard library

Download history 1/week @ 2024-11-27 7/week @ 2024-12-04 9/week @ 2024-12-11 1/week @ 2024-12-18 131/week @ 2025-01-08 10/week @ 2025-01-15 96/week @ 2025-01-22 47/week @ 2025-01-29 15/week @ 2025-02-05 10/week @ 2025-02-12 278/week @ 2025-02-19 35/week @ 2025-02-26 2/week @ 2025-03-05 19/week @ 2025-03-12

335 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