• Sign Up
    Time to claim your honor
  • Training
  • Practice
    Complete challenging Kata to earn honor and ranks. Re-train to hone technique
  • Freestyle Sparring
    Take turns remixing and refactoring others code through Kumite
  • Community
  • Leaderboards
    Achieve honor and move up the global leaderboards
  • Chat
    Join our Discord server and chat with your fellow code warriors
  • Discussions
    View our Github Discussions board to discuss general Codewars topics
  • About
  • Docs
    Learn about all of the different aspects of Codewars
  • Blog
    Read the latest news from Codewars and the community
  • Log In
  • Sign Up
Shaddy Avatar
Name:Sherab Giovannini
Clan:ByteHeed
Member Since:Nov 2017
Last Seen:Feb 2020
Profiles:
Following:1
Followers:0
Allies:0
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations
  • Replies (3)
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • x10an14
    • commented on "Make the Deadfish swim" rust solution
    • 5 years ago

    Same! =D

  • Custom User Avatar
    • insideoutclub
    • commented on "Recover a secret string from random triplets" kata
    • 7 years ago

    You don't have flatten, but you can easily replace it with flat_map:

    let a = [vec![1, 3, 5], vec![7, 9]];
    // let flat = a.iter().flatten().collect::<Vec<_>>();
    let flat = a.iter().flat_map(|x| x).collect::<Vec<_>>();
    println!("{:?}", flat);
    
  • Custom User Avatar
    • Chrono79
    • commented on "Directions Reduction" kata
    • 7 years ago

    Read the post below and its answers.

  • © 2025 Codewars
  • About
  • API
  • Blog
  • Privacy
  • Terms
  • Code of Conduct
  • Contact

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...