Cuixiping
Cuixiping
This PR doesn't work perfectly. For example:  In this case, the result is not the best path.
> Refactored this from #32 into the `src` and added a configuration to set what the turn penalty is to enforce even more straight paths. Can you review and fix...
Neither #32 nor #150 can find the best path with least turns. For example:  In this case, the result (yellow) is not the best path (red).
If language level provide both single and multiple parameters style, it will be much easier to use outer functions without neccessary to currify each of them.
For example ``` 施「Math.max」於二。於三。書之 ``` We get the following js code (cannot run) ``` var _ans1=Math.max(2)(3);console.log(_ans1); ``` `Math.max` is a native api. I have to define new curried versions of...
I plan to write some online demos (may be a small game) which need to use browser and DOM apis, what should I do?
In js, `"this"` should be considered. The following code cannot run with your curry wrapper. ``` var f = curry(document.body.insertBefore); var node = document.createElement('div'); var ref = document.body.firstChild; f(node)(ref); //js...
Can a demo be a folder? How to run and pass the testing if my demo contains *.wy and also js/html files?
Another question, some api functions can receive variable number of parameters, how to currify them? ``` xxx.yyy(a); xxx.yyy(a, b); xxx.yyy(a, b, c); ``` The only way I can think of...
> The second argument to `curry` is the `arity` (number of arguments). > So you can do `curry(xxx.yyy, 3)` `curry(xxx.yyy, 2)` etc. `curry(xxx.yyy, 3)` `curry(xxx.yyy, 2)` cannot give correct `[this]`...