Created
March 21, 2018 14:28
-
-
Save dancodan/a1998ce7d896a57d5e8261c14e6d5979 to your computer and use it in GitHub Desktop.
what Aaron said
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const getXYisWindy = getXYer(0.0137,9,0.0321,6); | |
const getXYhowWindy = getXYer(0.0691,9,0.0537,9); | |
so, those functions are just to get the X,Y where the answer to the question is. | |
you'll still need a function to evaluate them. something like. | |
curried functions take N arguments. for N-1 or fewer arguments, they return a | |
function that takes the remaining arguments. The classic example is add(a,b). | |
If you call add(5), it returns a function that takes one parameter and adds 5 to it. | |
This isn't a true curried function, but it's what javascript uses for it. | |
True currying usually happens in languages that use more of a reverse polish notation, like Lisp or Clojure. | |
Anyway, this makes it easy to make getXY functions for different purposes. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment