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

Curry - A Raku module for currying functions plus partially applying them #rakulang #currying #FunctionalProgramming #PartialApplication
https://github.com/CIAvash/Curry
GitHub - CIAvash/Curry: Curry is a Raku module for currying functions plus partially applying them

Curry is a Raku module for currying functions plus partially applying them - GitHub - CIAvash/Curry: Curry is a Raku module for currying functions plus partially applying them