Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1 @@
|
|||
Array.map
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
let square x = x * x;;
|
||||
let values = Array.init 10 ((+) 1);;
|
||||
Array.map square values;;
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
let values = [1;2;3;4;5;6;7;8;9;10];;
|
||||
List.map square values;;
|
||||
|
|
@ -0,0 +1 @@
|
|||
Array.iter (fun x -> Printf.printf "%d" x) [|1; 2; 3; 4; 5|];;
|
||||
|
|
@ -0,0 +1 @@
|
|||
List.iter (fun x -> Printf.printf "%d" x) [1; 2; 3; 4; 5];;
|
||||
|
|
@ -0,0 +1 @@
|
|||
Array.iter (Printf.printf "%d") [|1; 2; 3; 4; 5|];;
|
||||
|
|
@ -0,0 +1 @@
|
|||
List.iter (Printf.printf "%d") [1; 2; 3; 4; 5];;
|
||||
Loading…
Add table
Add a link
Reference in a new issue