

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Haskell is a lazy language. Chris Okasaki looked at imperative data structures in a functional setting. For example, binomial trees, splay trees, red-black trees, etc.
Lisp has higher-order functions. That means, functions are first class members. You have C++ pointers which pint to a piece of code. Java has lambda expres- sions now. There are links to the author’s lecture on the web. Perl6 is being implemented in Haskell.
There are two implementations:
Dr. Caldwell uses emacs - as a text editor. We will use interpreter even though Haskell programs can be compiled. Let’s go for Hugs then.
It’s defined by other programming paradigms.
Object-oriented programming can also be looked as imperative programming. It’s a kind of data abstraction mechanism built upon imperative (or functional) programming language.
Prolog - a variant is Lambda Prolog (functional logical hybrid). A program is a logical description of a problem to be solved. Computation is a form of search for a solution. You have to write description of a problem in the form of Horn clauses. It’s a kind of a restricted logic.
Functional programming languages are expression based. You write an expres- sion describing the desired solution – and computation is the process of evalu- ating the expression. Here’s a Haskell program for Quick sort.
2.3.1 Lists in Haskell
There are two constructors.
The usage is as follows: