home.social

#partialapplication — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #partialapplication, aggregated by home.social.

  1. Another #CodeGolf puzzle for #JavaScript #WebDev people:

    I have n functions that type one argument of the same type and return a boolean.

    The current usage is:
    function a(b) {
    return c(b) && d(b)
    }

    I boiled down a to
    a = (b) => [c, d].every(fn => fn(x))

    I assume, this can be further boiled down via bind/ #PartialApplication/ #Currying

    What do you think?

    #amCoding #amProgramming #webDevelopment #softwareDevelopment #softwareEngineering