I have:
let mut args = vec![];
args.extend(idxs.iter().skip(1));
This code constructs then fills. Is there a way to construct with the desired value ?
I have:
let mut args = vec![];
args.extend(idxs.iter().skip(1));
This code constructs then fills. Is there a way to construct with the desired value ?
idxs.iter().skip(1).collect::<Vec<_>>()
This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.