Hello bagyi, and welcome to the Monastery!
I don’t know of any single, integrated functional system, but contains many modules supplying functional programming features. Here are some:
Lazy evaluation:
Infinite lists:
List comprehensions:
Folds:
Pattern matching:
Currying:
The presence of so many CPAN modules implementing functional programming features in Perl is hardly surprising, given Mark Jason Dominus’s observation in the Preface to Higher-Order Perl:
Around 1993 I started reading books about Lisp, and I discovered something important: Perl is much more like Lisp than it is like C. If you pick up a good book about Lisp, there will be a section that describes Lisp’s good features. For example, the book Paradigms of Artificial Intelligence Programming, by Peter Norvig, includes a section titled What Makes Lisp Different? that describes seven features of Lisp. Perl shares six of these features; C shares none of them. These are big, important features, features like first-class functions, dynamic access to the symbol table, and automatic storage management.
(BTW, just out of curiosity: can someone please enumerate these seven features, and identify the one which is missing from Perl? I’ve often wondered.)
Hope that helps,
| Athanasius <°(((>< contra mundum | Iustus alius egestas vitae, eros Piratica, |
In reply to Re: Perl functional programming system
by Athanasius
in thread Perl functional programming system
by bagyi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |