|
[Date Index]
[Thread Index]
[Author Index]
Re: 2nd level pure function
not so evident, but short:
(you shurely found it yourself by now!)
Function[z,z+#1]&
is the pure function you need:
Function[z,z+#1]& [a]
Out[1]=
Function[z,z+a]
and:
Function[z,z+#1]& [a][b]
Out[2]=
a+b
wouter.
At 00:53 14-02-98 -0500, richard nathan linger wrote:
>
>I am having a problem with explicit functions. I am trying to write a
>procedure that returns a function that returns a function. I would
>like to have it return this as a pure function. I am not sure how to
>do this.
>
>I will state this problem another way; I know that if f[a]=4+a, then as
>a pure function, f is analagous to Function[4 + Slot[1]]. I want to
>know how to represent f as a pure function when f[a][b]=a+b;
>
>Nathan Linger
>Sophomore
>University of Illinois
>
>
>
Dr. Wouter L. J. MEEUSSEN
w.meeussen.vdmcc@vandemoortele.be
eu000949@pophost.eunet.be
Prev by Date:
how to pull real numbers out of a linear funktion ?
Next by Date:
Re: How to define the LaTeX output of certain symbols?
Prev by thread:
Re: 2nd level pure function
Next by thread:
Function
|