SHARE
TWEET

Untitled

a guest Jan 19th, 2020 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Current solution
  2. for i in 0..mem[b as usize].len() {
  3.     let tmp: i32 = mem[b as usize][i];
  4.     mem[a as usize].push(tmp);
  5. }
  6.  
  7. // Why cannot I do this
  8. for i in 0..mem[b as usize].len() {
  9.     mem[a as usize].push(mem[b as usize][i]);
  10. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top