Type Definition aorist_extendr_api::iter::Int[][src]

pub type Int = SliceIter<i32>;
Expand description

Iterator over primitives in integer objects.

use extendr_api::prelude::*;

fn add(a: Int, b: Int) -> Robj {
    a.zip(b).map(|(a, b)| a+b).collect_robj()
}

Trait Implementations