Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,17 @@
|
|||
defer less? ' < is less?
|
||||
|
||||
: least ( start end -- least )
|
||||
over cell+ do
|
||||
i @ over @ less? if drop i then
|
||||
cell +loop ;
|
||||
: selection ( array len -- )
|
||||
cells over + tuck ( end start end )
|
||||
cell- swap do ( end )
|
||||
i over least ( end least )
|
||||
i @ over @ i ! swap !
|
||||
cell +loop drop ;
|
||||
|
||||
create array 8 , 1 , 4 , 2 , 10 , 3 , 7 , 9 , 6 , 5 ,
|
||||
|
||||
array 10 selection
|
||||
array 10 cells dump
|
||||
Loading…
Add table
Add a link
Reference in a new issue