December 16th, 2005, 04:08 AM
"Lambda" method in Java
I have been discussing building a calculator that will be infinitely superior in quality (both user quality and mathematical capability) to Mathematica with one of my good friend and archnemesis who is using Scheme (the dialect of lisp).
I was thinking about how easy that'd be with the "Lambda" form. Basically the lambda form is defined as follows
I have seen it make derivatives infinitely easier, not to mention how easy functions would become. But it seems rather abstract: making a public static void method to make public static void methods within a method.
lambda (x) (+ x 4) //a function of x such that it equals x+4
lambda (<formal-parameters>) (<body>) /*the formal parameters akin to java's public static void(<formal-parameters>) and the (<body>) akin to java's, well, body
That stumped me. And unfortunately, my good friend and archenemy has all ready done calculus! (Horrors!) So time is of the essence.
December 19th, 2005, 03:03 AM
Forgive me for my ignorance, but is it not conceivable to make an abstract method that makes static methods?
Is it even plausible to make any sort of method that "constructs" a static method?
"The Texan turned out to be good-natured, generous and likeable. In three days no one could stand him." Catch 22
by Joseph Heller.
Buddies? I have no buddies...
Give the BSD daemon some love (proud FreeBSD user)