Anonymous user
Stair-climbing puzzle: Difference between revisions
Removed first function which used a variable. Replaced second one with the one liner.
(solved for Rust) |
(Removed first function which used a variable. Replaced second one with the one liner.) |
||
Line 816:
=={{header|Nim}}==
One liner (yes it is possible in Nim).
<lang nim>proc stepUp = (while not step(): stepUp())</lang>
=={{header|OCaml}}==
|