Skip to content

Instantly share code, notes, and snippets.

@selfup
Created March 8, 2016 00:37
Show Gist options
  • Save selfup/9dcc520396ba59ad6a86 to your computer and use it in GitHub Desktop.
Save selfup/9dcc520396ba59ad6a86 to your computer and use it in GitHub Desktop.
fn add_positions<'a>(v_cc: &'a mut Vec<i32>, y: &Cell<i32>, x: &Cell<i32>) -> &'a mut Vec<i32> {
v_cc.push(x.get());
v_cc.push(y.get());
v_cc
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment