Re: functional programming
- From: "Haris Bogdanovic" <fbogdanovic@xxxxxxx>
- Date: Thu, 15 Jan 2009 18:22:36 +0100
I started to learn Common Lisp and I saw that it is a great language.
You have interpreter but you can also compile code. On list of projects made
by CL is even an operating system. That's impossible with Ruby and
interpreted languages in general. You have functional language which is also
pure object oriented like Smalltalk or Ruby. Haskell is pure functional
language and I don't see how programmers can manage large portions of code
without objects. It's like procedural language with functions instead of
procedures.
And also CL has a lot of other advantages. As I understood Pascal, you can
make code that makes other code and you have support for logic programming
like Prolog.
"Haris Bogdanovic" <fbogdanovic@xxxxxxx> wrote in message
news:gk3m77$1ft$1@xxxxxxxxxxxxxxxxxx
Hi.
I'm starting to learn functional programming with Ruby.
I would like for someone to write me an example of finding the smallest
number in the list and a sorting algorithm.
I got the concept of map (collect), filter (select, detect and reject) and
reduce (inject) higher order functions but I don't know how to compose
algorithms from them.
So please write me those two algorithms or some other simple ones with
some explanation.
Some links to this subject would be nice also.
Thanks
Haris
.
- Follow-Ups:
- Re: functional programming
- From: Pascal J. Bourguignon
- Re: functional programming
- References:
- functional programming
- From: Haris Bogdanovic
- functional programming
- Prev by Date: Desktop <-> Web
- Next by Date: Re: Quizmaster Retiring: Revenge of the Sith
- Previous by thread: Re: functional programming
- Next by thread: Re: functional programming
- Index(es):
Relevant Pages
|