fn main() {
        let mut vec = vec![1, 5, 10, 2, 15];
        vec.sort();
        assert_eq!(vec, vec![1, 2, 5, 10, 15]);
      }
      
      Rust language logo

      Sort a vector of nums

      Codiga's Rust Recipes

      vector of numbers

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.