Jump to content

Sort three variables: Difference between revisions

Line 464:
: SORT3INTS ( a b c -- c b a) ?SWAP >R ?SWAP R> ?SWAP ;</LANG>
Testing is done using the Forth console using '.S' to view the Data stack contents.
<pre> ok
177444 2-12 30 ok
.S <3> 177444 2-12 30 ok
SORT3INTS ok
.S <3> 377444 20 1-12 ok
</PRE>
 
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.