![]() | ![]() | ![]() | Exercise 2 - An accumulator | Documentation and user's manual | Table of contents | OCaml programs |
Consider accumul_right
.
|
Write a recursive definition of accumul_right_1 (i.e., a phrase that begins with let rec accumul_right_1 , not with let accumul_right_1 ) that binds this name to the same value as that bounded to accumul_right .
|
| Use string values to represent strings and accumul_right to write a functional value that computes the concatenation of all the strings in a list.
|
|
Use the higher-order functions compose and accumul_right to write the functional value that computes the composition of all the functions in a list.
Name this value as compose_functions .
Write applications of Write applications of results of applications of |
![]() | ![]() | ![]() | Exercise 2 - An accumulator | Documentation and user's manual | Table of contents | OCaml programs |