Data update
This commit is contained in:
parent
4d5544505c
commit
4924dd0264
3073 changed files with 55820 additions and 4408 deletions
|
|
@ -0,0 +1,8 @@
|
|||
(import std.List :map)
|
||||
|
||||
(let array [1 2 3 4 5 6 7 8 9 10])
|
||||
(let mapped (map array (fun (i) (* i i))))
|
||||
|
||||
(assert
|
||||
(= mapped [1 4 9 16 25 36 49 64 81 100])
|
||||
"mapped is a list of squares")
|
||||
Loading…
Add table
Add a link
Reference in a new issue