Trait array_tool::vec::Times[][src]

pub trait Times {
    fn times(&self, qty: i32) -> Self;
}
Expand description

Expand and duplicate the vectors content times the integer given

Required methods

Example

use array_tool::vec::Times;

vec![1,2,3].times(3);

Output

vec![1,2,3,1,2,3,1,2,3]

Implementations on Foreign Types

Implementors