OCaml: Currying without defined values
Posted
by nicotine
on Stack Overflow
See other posts from Stack Overflow
or by nicotine
Published on 2010-04-29T03:36:27Z
Indexed on
2010/04/29
3:47 UTC
Read the original article
Hit count: 394
I have two functions f and g and I am trying to return f(g(x))
but I do not know the value of x and I am not really sure how to go about this.
A more concrete example: if I have functions f = x + 1
and g = x * 2
and I am trying to return f(g(x))
I should get a function equal to (x*2) + 1
© Stack Overflow or respective owner