Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions content/hoon/stdlib/1b.md
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,13 @@ An `$atom`.
%2
```

```
> %+ peg
(add (mul 2 +:(~(dig by outer) outer-key)) 1)
(add (mul 2 +:(~(dig by inner) inner-key)) 1)
477
```

#### Discussion

In other words, the subtree at address `.a` is treated as a tree in its own right (starting with root `+1`, head `+2`, and tail `+3`). Relative address `.b` is found with respect to `.a`, and then its absolute address, within the greater tree, is returned.
Expand Down