Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
11
Task/Sort-three-variables/Factor/sort-three-variables.factor
Normal file
11
Task/Sort-three-variables/Factor/sort-three-variables.factor
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
USING: arrays io kernel prettyprint sequences sorting ;
|
||||
IN: rosetta-code.sort-three
|
||||
|
||||
: sort3 ( b c a -- a b c ) 3array natural-sort first3 ;
|
||||
|
||||
"lions, tigers, and"
|
||||
"bears, oh my!"
|
||||
"(from the \"Wizard of OZ\")"
|
||||
sort3 [ print ] tri@
|
||||
|
||||
77444 -12 0 sort3 [ . ] tri@
|
||||
Loading…
Add table
Add a link
Reference in a new issue