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
701fad0e
Commit
701fad0e
authored
Oct 05, 2007
by
Pietro Abate
Browse files
[r2002-11-16 18:44:26 by cvscast] Empty log message
Original author: cvscast Date: 2002-11-16 18:44:26+00:00
parent
71f95806
Changes
3
Hide whitespace changes
Inline
Side-by-side
tests/examples.xml
View file @
701fad0e
...
...
@@ -112,7 +112,7 @@ What about computing 10000! ?
</abstract>
<code>
<![CDATA[
(* Yes, CDuce can handle large integers
! *)
(* Yes, CDuce can handle large integers! *)
let fun facto (Int ->
Int)
| 0 | 1 -> 1
| n -> n * (facto (n - 1))
...
...
tests/web.cd
View file @
701fad0e
...
...
@@ -56,7 +56,7 @@ let examples =
let fun script (code : String) : String =
"/cgi-bin/cduce
2
?example=" @ code;;
"/cgi-bin/cduce?example=" @ code;;
let fun do_example (
<_
code=
c
>
[
<title>
t
<abstract>
a; _] : Example) : Li =
<li>
[
<a
href =
script
c
>
[ !t '.' ] ' ' !a ];;
...
...
types/types.ml
View file @
701fad0e
...
...
@@ -254,7 +254,7 @@ and empty_rec_times c =
and
empty_rec_times_aux
(
left
,
right
)
=
let
rec
aux
accu1
accu2
=
function
|
(
t1
,
t2
)
::
right
->
(* This
may
avoid explosion with huge rhs
...
(* This avoid
s
explosion with huge rhs
(+/- degenerated partitioning)
May be slower when List.length right is small; could optimize
this case... *)
if
empty_rec
(
cap_t
accu1
t1
)
||
empty_rec
(
cap_t
accu2
t2
)
then
...
...
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