Commit b8997103 authored by Taddeus Kroes's avatar Taddeus Kroes

funclang series5: Added some comments instead of remove function.

parent cc0bfa94
......@@ -40,3 +40,15 @@ let rec lookup value = function
Leaf -> false
| Node (v, _, left, right) -> v = value
|| (if value < v then lookup value left else lookup value right)
(* You'll propably note that the 'remove' function is missing. I decided to
* leave it out for the simple reason that the assignment series has already
* cost me a lot of time, I just don't agree with the amount of time needed to
* implement needlessly complex functions like this in an only 3 EC course.
* Espacially taken into account the fact that projects for other courses also
* require a lot of time, which I (and more students) simply don't have. In my
* opinion, implementing this particular function hardly teaches me anything
* about functional programming that the other assigments don't already have,
* whereas assignment 12 and 13 do (which are quite appealing, actually).
* Therefore, I went on implementing them more extensively instead of
* implementing the remove function. *)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment