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
4640b273
Commit
4640b273
authored
Jul 10, 2007
by
Pietro Abate
Browse files
[r2003-11-27 15:59:48 by cmiachon] Empty log message
Original author: cmiachon Date: 2003-11-27 15:59:48+00:00
parent
66cc3180
Changes
2
Hide whitespace changes
Inline
Side-by-side
tests/cql/q4.cd
View file @
4640b273
(* functions *)
let fun member ((Any,Any) -> Bool)
|(s,[h;t]) -> if (s=h) then
1=1
else member (s,t)
|(s,_) ->
1=2
;;
|(s,[h;t]) -> if (s=h) then
`true
else member (s,t)
|(s,_) ->
`false
;;
let fun distinct_values ([Any*] -> [Any*])
| l -> let fun aux (([Any*],[Any*])->[Any*])
...
...
tests/cql/q7.cd
View file @
4640b273
...
...
@@ -52,7 +52,12 @@ from <bib>[b::Book*] in [doc],
(* here year attribute is set as String (see include "tests/cql/doc.cd")
so we needs use Where clause
otherwise we can use <book year=1991--*>[...] *)
otherwise we can use <book year=1991--*>[...]
idem, in q7x, if atribute year is declared as int
instead of y in [b]/@year where int_of(y) >> 1991
we could use [b]/<book year=1991--*>[_* <publisher>"Ad...
*)
let q7x =
let q = order (
...
...
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