Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
cduce
cduce
Commits
11ecd5f6
Commit
11ecd5f6
authored
Dec 16, 2014
by
Giuseppe Castagna
Browse files
Error in the definition of cardinal
parent
8b04fb93
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/poly/red-black.cd
View file @
11ecd5f6
...
...
@@ -98,4 +98,4 @@ let singleton (x : 'a): Btree('a) = <black elem=x>[ [] [] ]
let cardinal ( RBtree('a) -> Int )
| [] -> 0
| <_ ..>[ l r ] -> cardinal l + cardinal r
\ No newline at end of file
| <_ ..>[ l r ] -> cardinal l + cardinal r + 1
\ No newline at end of file
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