Erreur dans List.nth
git-svn-id: http://caml.inria.fr/svn/ocaml/trunk@1273 f963ae5c-01c2-4b8c-9fe0-0dff7051ff02master
parent
0d33755f3e
commit
f1491839c2
|
@ -31,7 +31,7 @@ let rec nth l n =
|
|||
| a::l ->
|
||||
if n = 0 then a else
|
||||
if n > 0 then nth l (n-1) else
|
||||
invalid_argument "List.nth"
|
||||
invalid_arg "List.nth"
|
||||
|
||||
let rec rev_append accu = function
|
||||
[] -> accu
|
||||
|
|
Loading…
Reference in New Issue