on master help sign in
List formatting for egg-timer
commit972a4f7e2b1cd9720a6b69332c82264dd73f2404 authorBrian Mavity <brian@brianmavity.com> dateSun 20 Oct 2019, 17:29 (7 years ago) parent1a93537
1 file changed+8−8
tutorials/hoon/egg-timer.md+8−8
tutorials/hoon/egg-timer.md+8−8
@@ -48,11 +48,11 @@ The sample of the `door` is:
4848
4949You can find the full definition of `bowl` in `sys/zuse.hoon`, but for now it's enough to know that this is the default app state and includes various faces for information. Below are some important such faces:
5050
51−`our` The ship this code is running on
52−`src` The ship the current event originated from
53−`ost` A reference to the current chain of events
54−`eny` Guaranteed-fresh entropy
55−`now` The current time
51+- `our` The ship this code is running on
52+- `src` The ship the current event originated from
53+- `ost` A reference to the current chain of events
54+- `eny` Guaranteed-fresh entropy
55+- `now` The current time
5656
5757The `door` we've made has two arms `poke-noun` and `wake`. Gall is capable of dispatching `pokes`, or requests, to an app based on the mark of the data given along with that poke. These are sent to the arm with the name that matches the mark of the data. Here we use the generic `noun` mark:
5858
@@ -66,9 +66,9 @@ The `door` we've made has two arms `poke-noun` and `wake`. Gall is capable of di
6666
6767In the above code, we create a gate that takes a single `@dr` argument. `@dr` is an aura for a 128-bit relative date. Here are a few examples.
6868
69−`~s17` 17 seconds
70−`~m20` 20 minutes
71−`~d42` 42 days
69+- `~s17` 17 seconds
70+- `~m20` 20 minutes
71+- `~d42` 42 days
7272
7373As a matter of good type hygiene, we explicitly cast the output of this gate with `^+` to ensure we are producing the correct thing for Gall to handle. `^+` is the rune for casting by example. Our example is a cell: `list` of `effect`, which we `bunt` with `*`, is the head; `+>.$`, the enclosing core which is our `door`, is the tail.
7474