![]() | ![]() | ![]() | Higher-order functions | Documentation and user's manual | Table of contents | OCaml programs |
This is an approximate definition of the notion of a higher-order function:
|
This is another correct definition:
make provided by the Objective Caml String module ( (String.make (n)) (c) returns a fresh string of length n , filled with the character c ) and of the function append (catenates two lists and has the same meaning as the infix operator @ ) provided by its List module:
|
![]() | ![]() | ![]() | Higher-order functions | Documentation and user's manual | Table of contents | OCaml programs |