Abstract

In functional languages such as Scheme or ML functions can be passed as parameters, can be constructed in other functions and returned as values. This allows a style of programming that is quite distinct from that used with languages such as Pascal, C or C++. Superficially, Java has no functions; however, using interfaces and inner classes it is fairly easy to mimic some of the important features of functional programming. Using an interface for real functions, it is shown how to write functions that take functions as parameters and construct and return new function. It is not advocated that functional programming be taught in Java - languages such as ML are much superior for that task. Rather, students can use modes of thinking learned in a study of a functional languages directly in programmes written in Java.

Full Text
Paper version not known

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.