Author: | mokrzu |
---|---|
Mode: | factor |
Date: | Sat, 30 Oct 2010 11:22:49 |
: my_expo ( x y -- z ) 1 [ rot dup * rot rot 1 + = not ] loop
Author: | marian |
---|---|
Mode: | text |
Date: | Sun, 31 Oct 2010 18:40:16 |
Even as a random by-walker I see few bugs in your code [ rot rot ] is same as [] [ dup * ] is square function -- likely not what you want [ 1 + = ] pops two items -- ditto