Results 1 to 2 of 2

Thread: "Lambda" method in Java

  1. #1
    Senior Member
    Join Date
    Oct 2005
    Posts
    106

    "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
    Code:
    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
    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.

    That stumped me. And unfortunately, my good friend and archenemy has all ready done calculus! (Horrors!) So time is of the essence.

  2. #2
    Senior Member
    Join Date
    Oct 2005
    Posts
    106
    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)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •