on master help sign in
update 1.4.1
commit80049498c030ca9e6eefdfeae397e28aba982993 authortinnus-napbus <admin@tinnus-napbus.xyz> dateFri 15 Oct 2021, 01:01 (5 years ago) parentad11e20
1 file changed+7−8
content/docs/hoon/hoon-school/recursion.md+7−8
content/docs/hoon/hoon-school/recursion.md+7−8
@@ -19,8 +19,8 @@ would be:
1919
2020Let's implement a factorial calculator in Hoon. To do so, we'll write a
2121recursive `gate` (Hoon's equivalent of a function) to perform the relevant
22−computation. Save the code below as `factorial.hoon` in your ship's `/gen`
23−directory.
22+computation. Save the code below as `factorial.hoon` in the `/gen` directory of
23+the `%base` desk on your ship.
2424
2525```hoon
2626|= n=@ud
@@ -185,11 +185,10 @@ skips the first match of a name.
185185### Exercises
186186
1871871. Write a recursive gate that produces the first _n_
188−[Fibonacci numbers](https://en.wikipedia.org/wiki/Fibonacci_number)
188+ [Fibonacci numbers](https://en.wikipedia.org/wiki/Fibonacci_number)
189189
1901902. Write a recursive gate that produces a list of moves to solve the
191−[Tower of Hanoi problem](https://en.wikipedia.org/wiki/Tower_of_Hanoi).
192−Disks are stacked on a pole by decreasing order of size. Move all of the
193−disks from one pole to another with a third pole as a spare, moving one
194−disc at a time, without putting a larger disk on top of a smaller disk.
195−
191+ [Tower of Hanoi problem](https://en.wikipedia.org/wiki/Tower_of_Hanoi).
192+ Disks are stacked on a pole by decreasing order of size. Move all of the
193+ disks from one pole to another with a third pole as a spare, moving one
194+ disc at a time, without putting a larger disk on top of a smaller disk.