Macro peroxide::c

source ·
macro_rules! c {
    ( $( $x:expr ),* ) => { ... };
    ( $( $x:expr );* ) => { ... };
}
Expand description

R like concatenate (Type: Vec<f64>)

§Examples

#[macro_use]
extern crate peroxide;
use peroxide::fuga::*;

fn main() {
    let a = c!(1,2,3,4);
    let b = c![5,6,7,8];
    let c = c![a; b];
    println!("{:?}", a); // [1,2,3,4]
    println!("{:?}", b); // [5,6,7,8]
    println!("{:?}", c); // [1,2,3,4,5,6,7,8]
}