Stair-climbing puzzle: Difference between revisions
Content added Content deleted
mNo edit summary |
|||
Line 679: | Line 679: | ||
=={{header|Julia}}== |
=={{header|Julia}}== |
||
As specified, shorter and fewer numbers preferred. |
As specified, shorter and fewer numbers preferred. It may be supposed that the robot would reach the bottom of any steps well before blowing the stack to reboot. |
||
<lang julia> |
<lang julia> |
||
step_up() = while !step() step_up() end |
step_up() = while !step() step_up() end |