Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uva
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Taddeüs Kroes
uva
Commits
b8997103
Commit
b8997103
authored
13 years ago
by
Taddeus Kroes
Browse files
Options
Downloads
Patches
Plain Diff
funclang series5: Added some comments instead of remove function.
parent
cc0bfa94
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
funclang-taddeus/series5/ass11.ml
+12
-0
12 additions, 0 deletions
funclang-taddeus/series5/ass11.ml
with
12 additions
and
0 deletions
funclang-taddeus/series5/ass11.ml
+
12
−
0
View file @
b8997103
...
...
@@ -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. *)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment