Guest User

Untitled

a guest
Dec 13th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. pub fn sum(&self) -> i16 {
  2. let mut r = 0i16;
  3. for (_, v) in &self.0 {
  4. r += *v as i16;
  5. }
  6. r
  7. }
Add Comment
Please, Sign In to add comment