.. _FP6:
.. raw:: html
.. |--| unicode:: U+2013 .. en dash
.. |---| unicode:: U+2014 .. em dash, trimming surrounding whitespace
:trim:
.. This file is part of the OpenDSA eTextbook project. See
.. http://algoviz.org/OpenDSA for more details.
.. Copyright (c) 2012-13 by the OpenDSA Project Contributors, and
.. distributed under an MIT open source license.
.. avmetadata::
:author: David Furcy and Tom Naps
===========================================
Functional Programming - Part 6
===========================================
.. (M 2/22/16)
RP 10 part 1
------------
Topics of the day:
1. Procedural abstraction
2. Mapping pattern
3. Currying
4. Function composition
The review problem set for today contains four review problems.
This first problem is about function composition.
.. avembed:: Exercises/PL/RP10part1.html ka
:module: FP6
:points: 1.0
:required: True
:threshold: 1.0
:exer_opts: JXOP-debug=true&JOP-lang=en&JXOP-code=java_generic
:long_name: RP set #10, question #1
RP 10 part 2
------------
This problem is about both currying and function composition.
.. avembed:: Exercises/PL/RP10part2.html ka
:module: FP6
:points: 1.0
:required: True
:threshold: 1.0
:exer_opts: JXOP-debug=true&JOP-lang=en&JXOP-code=java_generic
:long_name: RP set #10, question #2
RP 10 part 3
------------
This problem is about the mapping pattern.
.. avembed:: Exercises/PL/RP10part3.html ka
:module: FP6
:points: 1.0
:required: True
:threshold: 1.0
:exer_opts: JXOP-debug=true&JOP-lang=en&JXOP-code=java_generic
:long_name: RP set #10, question #3
RP 10 part 4
------------
This problem will give you intensive practice with the ``curry`` and
``compose`` functions. This problem is randomized and must be solved
three times in a row.
.. avembed:: Exercises/PL/RP10part4.html ka
:module: FP6
:points: 1.0
:required: True
:threshold: 3.0
:exer_opts: JXOP-debug=true&JOP-lang=en&JXOP-code=java_generic
:long_name: RP set #10, question #4