• Custom User Avatar

    T doesn't implement Copy but Vec implements IntoIterator, which means you can call into_iter() and get T. (instead of &T that you get from iter() that you can't collect() )

    I had to look at the solutions to notice usage of into_iter() and google the difference between it and iter() I was used to.
    Not an obvious thing if you're new to the language like I am.

  • Custom User Avatar
  • Custom User Avatar

    The problem was the user could modify the input. Fixed.

  • Custom User Avatar

    Set up is always like this in Rust katas. Not an issue.

  • Custom User Avatar

    In Rust, the parameters are not mutable nor is copy implemented for type 'T'. I think the kata needs work, but it is quite possible I am missing something. Please let me know. Thanks!