fn child(context: (i32, Vec<i32>, Channel<(i32, i32)>)) {
    let i = context.0;
    let vec = context.1;
    let channel = context.2;
    let sum_until_i: i32 = vec[..=i as usize].iter().sum();
    channel.send((i, sum_until_i));
}
// Child process calculates the sum of numbers of context.1 until context.0 index.
Child process calculates the sum of numbers of context.1 until context.0 index.
Child process calculates the sum of numbers of context . 1 until context . 0 index .
fn child(context: (i32, Vec<i32>, Channel<(i32, i32)>)) {
    let i = context.0;
    let vec = context.1;
    let channel = context.2;
    let sum_until_i: i32 = vec[..=i as usize].iter().sum();
    channel.send((i, sum_until_i));
}
fn child ( context : ( i32 , Vec < i32 > , Channel < ( i32 , i32 ) > ) ) { let i = context . 0 ; let vec = context . 1 ; let channel = context . 2 ; let sum_until_i : i32 = vec [ .. = i as usize ] . iter ( ) . sum ( ) ; channel . send ( ( i , sum_until_i ) ) ; }
Child process calculates the sum of numbers of context.1 until context.0 index.
Child process calculates the sum of numbers of context . 1 until context . 0 index .
context
(i32, Vec<i32>, Channel<(i32, i32)>)