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
665b02e3
Commit
665b02e3
authored
Oct 05, 2007
by
Pietro Abate
Browse files
[r2004-07-09 14:38:49 by cmiachon] Empty log message
Original author: cmiachon Date: 2004-07-09 14:38:49+00:00
parent
65c5a910
Changes
1
Hide whitespace changes
Inline
Side-by-side
runtime/value.ml
View file @
665b02e3
...
...
@@ -678,10 +678,10 @@ let query_member e l = match l with
let
rec
aux
l
i
=
match
l
with
|
Pair
(
j
,
r
)
->
if
(
compare
i
j
=
0
)
then
vtrue
else
aux
r
i
|
Atom
a
when
a
=
Sequence
.
nil_atom
->
vfalse
|
_
->
failwith
"tutu"
|
_
->
assert
false
in
aux
(
Pair
(
i
,
p
))
(
e
)
|
Atom
a
when
a
=
Sequence
.
nil_atom
->
vfalse
|_
->
failwith
"tata"
|_
->
assert
false
...
...
@@ -691,10 +691,10 @@ let query_distinct = function
|
Pair
(
h
,
t
)
->
if
(
query_member
h
t
)
=
vtrue
then
(
aux
t
l2
)
else
(
aux
t
(
l2
@
[
h
]))
|
Atom
a
when
a
=
Sequence
.
nil_atom
->
l2
|
_
->
failwith
"titi"
|
_
->
assert
false
in
sequence
(
aux
(
Pair
(
i
,
p
))
[]
)
|
Atom
a
when
a
=
Sequence
.
nil_atom
->
(
Atom
(
Sequence
.
nil_atom
))
|_
->
failwith
"titi"
|_
->
assert
false
...
...
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