Jump to content

Functional programming -- 2009-2010 -- info.uvt.ro/Laboratory/Notes 4

From Wikiversity


Functional programming (Spring 2010):

Discontinued due to lack of student interest.

Covered topics

[edit]
  • high order functions (functions treated as usual values);
  • function calls with apply or funcall;
  • function composition;
  • lambda (functions created as usual values);
  • classic list operations using lambda's;
  • closures;
  • currying;

Examples

[edit]

High order functions

[edit]

...

Function composition

[edit]

...

Lambda

[edit]

...

Currying

[edit]

...


Exercises

[edit]

...

References

[edit]

Important! The next topics are already covered by the course notes and are put here only for reference.

Reading

[edit]

...

API

[edit]
lambda

For Scheme:

For Common Lisp:

  • ...
apply, funcall, compose

For Scheme:

For Common Lisp:

  • ...

map and friends

For Scheme:

For Common Lisp:

  • ...