Exercise 5 - Newton's methodExercisesExercise 3 - Operations over functionsExercise 4 - FilterDocumentation and user's manualTable of contentsOCaml programs

Exercise 4 - Filter

 1 
  Write a function named  sublist  that computes from a given predicate the function that extracts the sublist of the elements in a list satisfying the predicate. Its type must be  ('a -> bool) -> ('a list -> 'a list) .

 2 
  Use  sublist  to write a function that computes the sublist of the positive integers in a list.


Latest update : October 5, 2006
This document was translated from LaTeX by Hyperlatex 2.5, which is not the latest version of Hyperlatex.

Exercise 5 - Newton's methodExercisesExercise 3 - Operations over functionsExercise 4 - FilterDocumentation and user's manualTable of contentsOCaml programs