Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,21 @@
|
|||
a := [1 .. 4];
|
||||
b := ShallowCopy(a);
|
||||
|
||||
# Apply and replace values
|
||||
Apply(a, n -> n*n);
|
||||
a;
|
||||
# [ 1, 4, 9, 16 ]
|
||||
|
||||
# Apply and don't change values
|
||||
List(b, n -> n*n);
|
||||
# [ 1, 4, 9, 16 ]
|
||||
|
||||
# Apply and don't return anything (only side effects)
|
||||
Perform(b, Display);
|
||||
1
|
||||
2
|
||||
3
|
||||
4
|
||||
|
||||
b;
|
||||
# [ 1 .. 4 ]
|
||||
Loading…
Add table
Add a link
Reference in a new issue