A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
7
Task/Arrays/Factor/arrays-1.factor
Normal file
7
Task/Arrays/Factor/arrays-1.factor
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
{ 1 2 3 }
|
||||
{
|
||||
[ "The initial array: " write . ]
|
||||
[ [ 42 1 ] dip set-nth ]
|
||||
[ "Modified array: " write . ]
|
||||
[ "The element we modified: " write [ 1 ] dip nth . ]
|
||||
} cleave
|
||||
6
Task/Arrays/Factor/arrays-2.factor
Normal file
6
Task/Arrays/Factor/arrays-2.factor
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
V{ 1 2 3 }
|
||||
{
|
||||
[ "The initial vector: " write . ]
|
||||
[ [ 42 ] dip push ]
|
||||
[ "Modified vector: " write . ]
|
||||
} cleave
|
||||
Loading…
Add table
Add a link
Reference in a new issue