tuple-map 0.0.1

map methods for tuple
Documentation

tuple-map

Build Status License: MIT

This library provides iterator-like utilities for map, fold, for_each, and etc., for tuple.

Example

extern crate tuple_map;
use tuple_map::*;
fn main() {
    let (x, y) = (3, 4);
    let (x, y) = (x, y).map(|a| a + 5);
    assert_eq!(x, 8);
    assert_eq!(y, 9);
}