• 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
amrdraz Avatar
Name:Amr Draz
Clan:Unknown
Member Since:Nov 2013
Last Seen:Jun 2018
Profiles:
Following:1
Followers:5
Allies:1
View Profile Badges
  • Stats
  • Kata
  • Collections
  • Kumite
  • Social
  • Discourse
  • Conversations
  • Replies
  • Authored
  • Needs Resolution (17)
  • Custom User Avatar
    • big_M
    • created a suggestion for "Functional Addition" kata
    • 9 days ago

    needs to be checked
    Translation Dart

  • Custom User Avatar
    • o2001
    • created a suggestion for "Functional Addition" kata
    • 2 years ago

    C++ Translation.

  • Custom User Avatar
    • TrebitschTheReal
    • created an issue for "A function within a function" kata
    • 4 years ago

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

  • Custom User Avatar
    • FArekkusu
    • created an issue for "A function within a function" kata
    • 4 years ago

    Returning a closure is not a novel kata idea.

  • Custom User Avatar
    • rrenode
    • created a question for "A function within a function" kata
    • 5 years ago

    So I only recently understood closures, actually only made sense after my attempts. Though, if I may ask, how does the lambda function relate to closures? I'm in python I should add.

  • Custom User Avatar
    • suic
    • created a suggestion for "Functional Addition" kata
    • 6 years ago

    Groovy translation kumited. Please review and approve. Thanks, suic

  • Custom User Avatar
    • dallashall
    • created an issue for "A function within a function" kata
    • 9 years ago

    There were no test cases provided for Ruby. I used:

    three = always(3)
    Test.assert_equals(three.call, 3, "Expected: 3, got #{three.call}")
    

    When submitting, I get this error:

    `always': wrong number of arguments (given 0, expected 1) (ArgumentError)
    	from `<main>'
    

    Is there a test for ruby, currently? I'm new to the functional side of Ruby, so I appreciated this Kata, but I don't know if it is finished on the Ruby side.

  • Custom User Avatar
    • user2658067
    • created a question for "A function within a function" kata
    • 9 years ago

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

  • Custom User Avatar
    • JacobDanielM
    • created a question for "A function within a function" kata
    • 9 years ago

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

  • Custom User Avatar
    • jastrzebskib
    • created a suggestion for "A function within a function" kata
    • 10 years ago

    [all languages]
    You could note that this kind of a construction is called a closure.

    It would make it easier for beginners to find and learn about this.

  • Custom User Avatar
    • ByteCommander
    • created a suggestion for "Anything" kata
    • 10 years ago

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

  • Custom User Avatar
    • phaul
    • created an issue for "A function within a function" kata
    • 11 years ago

    I'm talking about haskell:

    Why do you use () (type Unit) for the argument of the returned function? Only one value is unit : () (denoted by the same thing as the type). So actually the returned function will only take () to the given value. I think, the intention was Int -> a -> Int (for any a).

    Ie with your type this wouldn't type check: (always 3) 5 only this would: (always 3) ()

  • Custom User Avatar
    • Teumer
    • created a question for "A function within a function" kata
    • 11 years ago

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

  • Custom User Avatar
    • fenring76
    • created a suggestion for "A function within a function" kata
    • 11 years ago

    The test case implies that no arguments will be passed to this new function. Correct behavior of the returned function in the case of arguments passed should be explicitly mentioned in the instructions.

  • Custom User Avatar
    • snewcomer
    • created a question for "A function within a function" kata
    • 11 years ago

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

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

Confirm

  • Cancel
  • Confirm

Collect: undefined

Loading collection data...