on master help sign in
fix workbook build and update index
commit12b96ab010fabba60133aaccc5910d4fd8c209d9 authorMorgan Sutherland <morgan@morgansutherland.com> dateTue 21 May 2019, 15:35 (7 years ago) parent0284c12
3 files changed+23−7
learn/hoon/workbook/_index.md+11−7 learn/hoon/workbook/even.md+6 learn/hoon/workbook/fib.md → learn/hoon/workbook/fibonacci.md+6
learn/hoon/workbook/_index.md+11−7
@@ -7,16 +7,20 @@ template = "sections/docs/chapters.html"
77The Workbook is the place to sharpen your Hoon skills. Each entry in the
88Workbook is a code walkthrough followed by exercises.
99
10−- the [List of Numbers](list) example will familiarize you with the basic components and structure of a Hoon program. If you're brand new, start here.
10+- the [List of Numbers](/docs/learn/hoon/workbook/list) example will familiarize you with the basic components and structure of a Hoon program. If you're brand new, start here.
1111
12−- The [Caesar Cipher](caesar) shows you how to build a simple method of message obfuscation.
12+- The [Caesar Cipher](/docs/learn/hoon/workbook/caesar) shows you how to build a simple method of message obfuscation.
1313
14−- The [Recursion](recursion) walkthrough will explain common patterns of recursion in programming and how to implement them in Hoon.
14+- The [Recursion](/docs/learn/hoon/workbook/recursion) walkthrough will explain common patterns of recursion in programming and how to implement them in Hoon.
1515
16−- The [Digits](digits) example demonstrates how to decompose a number into a list of its digits.
16+- The [Digits](/docs/learn/hoon/workbook/digits) example demonstrates how to decompose a number into a list of its digits.
1717
18−- The [Magic 8-Ball](eightball) example emulates everyone's favorite decision-making machine.
18+- The [Magic 8-Ball](/docs/learn/hoon/workbook/eightball) example emulates everyone's favorite decision-making machine.
1919
20−- The [Traffic-light](traffic-light) example demonstrates how to creates a state machine in Hoon.
20+- The [Traffic-light](/docs/learn/hoon/workbook/traffic-light) example demonstrates how to creates a state machine in Hoon.
2121
22−- The [Bomb-defusing](bomb) exercise shows how to program, well, a bomb-defusing scenario.
22+- The [Bomb-defusing](/docs/learn/hoon/workbook/bomb) exercise shows how to program, well, a bomb-defusing scenario.
23+
24+- The [Even](/docs/learn/hoon/workbook/even) example shows how to take an integer and checks if it is even and between 1 and 100.
25+
26+- The [Fibonacci](/docs/learn/hoon/workbook/fibonacci) example shows how to write a generator that produces a list of Fibonacci numbers.
learn/hoon/workbook/even.md+6
@@ -1,3 +1,9 @@
1++++
2+title = "Even"
3+weight = 8
4+template = "doc.html"
5++++
6+
17Write a generator that takes an integer and checks if it even and between 1 and 100.
28
39```
learn/hoon/workbook/fib.md → learn/hoon/workbook/fibonacci.mdrenamed+6
@@ -1,3 +1,9 @@
1++++
2+title = "Fibonacci"
3+weight = 9
4+template = "doc.html"
5++++
6+
17In this example, we will write a generator that produces a list of Fibonacci numbers up to `n`.
28
39```