-
Hi guys,
I've got a suggestion for the js pattern section:
Yesterday I learned about currying. Maybe this could be usefull to be included. I included a list of sources that might be interesting:…
-
Hey Charles, long time no talk :D
I was jazzed about the functional programming stuff we had done together so I made a useful package [here](https://www.npmjs.com/package/@teleology/fp) that I've b…
-
See playground:
https://rescript-lang.org/try?version=v11.1.3&code=AIWw9gJgrgNgpgCgEQgJ4FoCWA7ALumTAIyQEoACOAD1zgCdsBDGcxiCALnIR1wBpyvCgF4AfILzlh5JGwhIAUAtyoADnAm4A8qqndeAoVPG8FoSLEQoMvAsTKUa9JiwDO…
-
sezna updated
4 months ago
-
So, let's say this setup:
- We have a component that represents a page/screen
- The component is injected into two different _hosts_ (let's say app and engine).
- The component will link to a par…
gossi updated
2 years ago
-
Sometimes curried functions are more useful than >1 arity ones, because they play very naturally with partial application. Example of syntax/usage:
```ocaml
function map(f : ('a) => 'b)(l : list('a)…
-
p286) 고차함수 - 함수를 반환하는 함수
```js
function makeAdder(n){
return function(x){
return n + x
}
}
makeAdder(1)(3) // 4
```
`함수를 반환하는 함수`로 볼 수도 있고 `커링`이라고 볼 수도 있는 것 같다!
책에는 직접적으로 `커링…
-
Some functions are often invoked with one argument being a constant and they do some preparatory computations that do not need to be done for each row.
Example: `date_format` builds a format object…
-
Functional patterns in JavaScript are COOOOL. Depending on whether proposals such as [these](https://github.com/tc39/proposal-pipeline-operator/wiki) get approved, it might be a good idea to boil more…
-
After using fn.js for a bit now, I'm starting to wonder if I regret not making most methods auto-currying. I'm considering making this change for 1.0 and would welcome comments for or against based on…