Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 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