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
Pierre Letouzey
prog-lmfi
Commits
25382ed3
Commit
25382ed3
authored
Sep 12, 2019
by
Pierre Letouzey
Browse files
typo dans List.length
parent
1d929b4f
Changes
1
Show whitespace changes
Inline
Side-by-side
ocaml/init-prog-ocaml-correction.md
View file @
25382ed3
...
@@ -355,7 +355,7 @@ Voici quelques exemples classiques
...
@@ -355,7 +355,7 @@ Voici quelques exemples classiques
let
rec
length
l
=
let
rec
length
l
=
match
l
with
match
l
with
|
[]
->
0
|
[]
->
0
|
_
::
q
->
1
+
length
l
|
_
::
q
->
1
+
length
q
(* concaténation de deux listes, déjà fourni par OCaml via la syntaxe @ *)
(* concaténation de deux listes, déjà fourni par OCaml via la syntaxe @ *)
let
rec
append
l1
l2
=
let
rec
append
l1
l2
=
...
...
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