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.
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!
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.
Nasm translation
The problem was the user could modify the input. Fixed.
Set up is always like this in Rust katas. Not an issue.
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!