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
fe97f725
Commit
fe97f725
authored
Oct 05, 2007
by
Pietro Abate
Browse files
[r2002-11-11 20:44:28 by cvscast] Empty log message
Original author: cvscast Date: 2002-11-11 20:44:28+00:00
parent
d85c61c0
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/overloading.cd
View file @
fe97f725
...
...
@@ -40,13 +40,25 @@ let base : Person =
sort base;;
let fun contact(Person->String)
| <person>[ _ _ ((<tel kind="work"> x) | (<email> x) | (<tel
kind="home"
> x))] -> x
| <person>[ _ _ ((<tel kind="work"> x) | (<email> x) | (<tel> x))] -> x
| _ ->"no contact";;
contact(
<person gender="F">[
<name>"Vronique"
<children>[
<person gender="F">[
<name>"Ilaria"
<children>[]
]
]
<tel> "314-1592654"
])
;;
contact base;;
(* compilation efficace avec _ a la place de person *)
...
...
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