Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
uva
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
uva
Commits
221a9ed8
Commit
221a9ed8
authored
Dec 05, 2011
by
Taddeus Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
funclang series5: Moved tree insert test to separate file.
parent
cab67bd0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
15 additions
and
11 deletions
+15
-11
funclang-taddeus/series5/ass11.ml
funclang-taddeus/series5/ass11.ml
+0
-11
funclang-taddeus/series5/test_expr.ml
funclang-taddeus/series5/test_expr.ml
+0
-0
funclang-taddeus/series5/test_tree.ml
funclang-taddeus/series5/test_tree.ml
+15
-0
No files found.
funclang-taddeus/series5/ass11.ml
View file @
221a9ed8
...
...
@@ -38,14 +38,3 @@ let rec lookup value = function
Leaf
->
false
|
Node
(
v
,
_
,
left
,
right
)
->
v
=
value
||
(
if
value
<
v
then
lookup
value
left
else
lookup
value
right
)
let
a
=
Leaf
let
a
=
insert
a
13
let
a
=
insert
a
8
let
a
=
insert
a
17
let
a
=
insert
a
1
let
a
=
insert
a
11
let
a
=
insert
a
15
let
a
=
insert
a
6
let
a
=
insert
a
22
let
a
=
insert
a
27
funclang-taddeus/series5/test.ml
→
funclang-taddeus/series5/test
_expr
.ml
View file @
221a9ed8
File moved
funclang-taddeus/series5/test_tree.ml
0 → 100644
View file @
221a9ed8
#
use
"ass11.ml"
(* Note: to run this test, open an OCaml shell and type
* '#use "test_tree.ml";;'. This will show the progress of insertions
* into 'a'. *)
let
a
=
Leaf
let
a
=
insert
a
13
let
a
=
insert
a
8
let
a
=
insert
a
17
let
a
=
insert
a
1
let
a
=
insert
a
11
let
a
=
insert
a
15
let
a
=
insert
a
6
let
a
=
insert
a
22
let
a
=
insert
a
27
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment