47
Comments
  • 4
    Can func call itself until it’s empty or null?
  • 3
    what kind of sorcery is that??
  • 5
    @taosif7 It's an ugly Mac OS frame displaying an arrow function that returns an arrow function that returns an arrow function that returns a string that - as it's nested - has all the arguments passed to the arrow functions
  • 2
    Brainfuck is more beautiful than this.
  • 0
    @mohanramphp
    Corrected:
    > CURRY FUNCTION AM I

    Yes it's reversed lol
  • 2
    oh gosh I almost forgot about how much I loved functional programming.... I had a series of assignments in programming language design in college where at the end, you've implemented a bytecode compiler for a miniature programming language that runs on a little vm written in Ruby by the professor. one of my favorite classes. you've inspired me to explore it again.
  • 2
    These functions look delicious with chicken
  • 1
    What are some practical uses of currying?
  • 1
    @diavel example might be when you want to call a function with less arguments than it expects. Assuming you have a simple add(x,y) function you can make addTen like this:

    const addTen = x => add(x,10)
  • 2
    @lambdaCurry does it have any advantages over
    function addTen(x){
    return add(x, 10);
    } ?
  • 0
    @hack it’s the same, just different syntax
  • 0
    How can you not love JS?!
  • 0
    @ePinikion because arrays are actually hashmaps in JS
  • 0
    @mjones44 actually they are objects
  • 0
    @ePinikion yeah and Objects are actually hashmaps in JS
  • 0
    everything is a hashmap in JS
  • 0
    Im not sure
Add Comment