mirror of
https://github.com/c-cube/ocaml-containers.git
synced 2025-12-06 03:05:28 -05:00
tailrec
This commit is contained in:
parent
1b3ddb7adf
commit
037c55a43d
1 changed files with 4 additions and 4 deletions
|
|
@ -233,13 +233,13 @@ combine [ 1; 2; 3 ] [ 3; 2; 1 ] = List.combine [ 1; 2; 3 ] [ 3; 2; 1 ]
|
|||
;;
|
||||
|
||||
t @@ fun () ->
|
||||
combine (1 -- 100_000) (1 -- 100_000)
|
||||
= List.combine (1 -- 100_000) (1 -- 100_000)
|
||||
combine (1 -- 10_000) (1 -- 10_000) = List.combine (1 -- 10_000) (1 -- 10_000)
|
||||
;;
|
||||
|
||||
t @@ fun () ->
|
||||
combine (1 -- 300_000) (1 -- 300_000)
|
||||
= List.combine (1 -- 300_000) (1 -- 300_000)
|
||||
combine (1 -- 300_000) (map string_of_int @@ (1 -- 300_000))
|
||||
= map (fun (x, y) -> y, x)
|
||||
@@ combine (map string_of_int @@ (1 -- 300_000)) (1 -- 300_000)
|
||||
;;
|
||||
|
||||
q
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue