• 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
corebreaker Avatar
Name:Frédéric Meyer
Clan:Code Sweet Code
Skills:development, algorithms, etc.
Member Since:Oct 2018
Last Seen:Apr 2025
Profiles:
Following:7
Followers:10
Allies:5
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations (56)
  • Replies
  • Authored
  • Needs Resolution
  • Custom User Avatar
    • mertkaradayi
    • commented on "Find Multiples of a Number" rust solution
    • 4 months ago

    I Think this is a really good solution

  • Custom User Avatar
    • corebreaker
    • commented on "Count the Monkeys!" python solution
    • 7 months ago

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar
    • corebreaker
    • commented on "Find the smallest integer in the array" rust solution
    • 2 years ago

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar
    • Tuna4242
    • commented on "Find the smallest integer in the array" rust solution
    • 2 years ago

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar
    • arkadiy.kamnev
    • commented on "Fix string case" go solution
    • 2 years ago

    Look at the implementation of the strings.ToUpper / strings.ToLower function – there is a loop inside. So that you are using more than 1 loop in your solution.

    https://cs.opensource.google/go/go/+/go1.20.4:src/strings/strings.go;l=585
    https://cs.opensource.google/go/go/+/go1.20.4:src/strings/strings.go;l=625

  • Custom User Avatar
    • koteykin007
    • commented on "Convert boolean values to strings 'Yes' or 'No'." go solution
    • 2 years ago

    it feels like overhead but still clever

  • Custom User Avatar
    • threesam
    • commented on "Simple multiplication" rust solution
    • 3 years ago

    how dare this be so beautiful

  • Custom User Avatar
    • adamarthurryan
    • commented on "Gravity Flip (3D version)" rust solution
    • 3 years ago

    Thank you!

  • Custom User Avatar
    • corebreaker
    • commented on "Gravity Flip (3D version)" rust solution
    • 3 years ago

    Ok, thanks.

  • Custom User Avatar
    • Chrono79
    • commented on "Gravity Flip (3D version)" rust solution
    • 3 years ago

    Please, use spoiler flag next time.

  • Custom User Avatar
    • corebreaker
    • commented on "Gravity Flip (3D version)" rust solution
    • 3 years ago

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar
    • corebreaker
    • commented on "You only need one - Beginner" python solution
    • 3 years ago

    Hi @Rockkley.

    Lambdas are anonymous callable objects. If you want call it later, you must use a variable, no other choice to do that. And here (in codewars) if there no name, unit test cannot check the solution.

    For your information, in python, a def (and so, a fonction) defined like that create a variable:

    def foobar(): pass
    

    The variable created is foobar, the proof, you can do that:

    def foobar(): pass
    foobar = 1234
    

    It's the aim of the mechanism under the concept of decorators.

    If you prefer i can use these solutions instead of lambda, the solution will be acepted:

    # Common accepted solution
    def check(s, e): return e in s
    
    # Another solution
    def singleton(c): return c()
    @singleton
    class check:
      def __call__(self, s, e):
        return e in s
    
  • Custom User Avatar
    • westscz
    • commented on "You only need one - Beginner" python solution
    • 3 years ago

    I know that lambda is anonymous function, and there's no need to create variable for lambda, but here we need to meet the interface requirements. Requirement here is that check is callable.

    In real world I would not create function for this one liner, that's why I'm showing solution with lambda.

  • Custom User Avatar
    • kolichj
    • commented on "You only need one - Beginner" python solution
    • 3 years ago

    variable "check" holds the function. and ambda describes the oneliner function.

    mult = lambda a,b:a*b

    is the same as

    def mult(a,b):
    return a*b

  • Custom User Avatar
    • akar-0
    • commented on "You only need one - Beginner" python solution
    • 3 years ago

    What do you mean? Do you know how lambdas work? Do you know you can copy the code and make trials on your own to understand how it works? On your own computer, or just here, by clicking on Forkjust below any solution.

  • Loading more items...
  • © 2025 Codewars
  • About
  • API
  • Blog
  • Privacy
  • Terms
  • Code of Conduct
  • Contact

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...