Skip to content

Instantly share code, notes, and snippets.

@vdeturckheim
Created July 11, 2018 13:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save vdeturckheim/af94262bbdd7f0da8333f0d64b5dd501 to your computer and use it in GitHub Desktop.
Save vdeturckheim/af94262bbdd7f0da8333f0d64b5dd501 to your computer and use it in GitHub Desktop.
pub fn sum(a: Vec<i32>) -> i32 {
a.iter().sum()
}
pub fn run() {
for i in 0..10000 {
sum(vec![1, 2, 3, 4, 5, 6, 7, 8, 9]);
};
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment