Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
In the worst situation creating four iterators but using only the first & last yields
Question from a noob – would this (at scale, for instance) use more memory by creating two separate iterators, or would the compiler optimise this somehow?
thrice in my benchmark. it operates inplace
Thanks
https://github.com/Codewars/codewars.com/wiki/Language-Rust
You can use libraries? How?
As far as rust is concerned,
mut a
is not a change of signature.Is this solution really twice faster than approach with iterators?
fixed
It's nice to see a solution that only uses iterator functions. Good job.
Rust translation kumited .
You don't have flatten, but you can easily replace it with flat_map:
Fixed
Yes, Rust.
It would be nice to mention in which language, Rust is it?
Loading more items...