1::2::Nil sort >

4 replies

Thu, 2010-04-29, 14:39

Razvan Cojocaru 2

Joined: 2009-11-20,

I remember in C++, a pointer to a method could be passed around as a function
with 2 arguments, simply because methods are actually functions taking an
implicit first argument (maybe my memory doesn't serve me well anymore).

The question is: is there (or could there be) a syntax to get a method as a
function of 2 arguments? so I could simply write this:

On Thu, Apr 29, 2010 at 06:39:10AM -0700, Razvan Cojocaru wrote:
> The question is: is there (or could there be) a syntax to get a method
> as a function of 2 arguments? so I could simply write this:
>
> 1::2::NIl sort Int.>

I remember in C++, a pointer to a method could be passed around as a function
with 2 arguments, simply because methods are actually functions taking an
implicit first argument (maybe my memory doesn't serve me well anymore).

The question is: is there (or could there be) a syntax to get a method as a
function of 2 arguments? so I could simply write this:

I remember in C++, a pointer to a method could be passed around as a function
with 2 arguments, simply because methods are actually functions taking an
implicit first argument (maybe my memory doesn't serve me well anymore).

The question is: is there (or could there be) a syntax to get a method as a
function of 2 arguments? so I could simply write this: