Passing a function as a parameter
Hi,
I was wondering if it is possible to pass a function as a parameter.
(If you have a link and/or an example, that would be great.)
My intention is to write a C/C++ like qsort function, where I can pass
a reference to an array and the comparison function with it returning
the sorted array.
Thanks,
Scott
|