on master help sign in
Wide-form docs for: /. /, /^ /# /$
0d36dfdTed Blackman
docs/arvo/internals/ford/runes.md+8−2
@@ -259,7 +259,7 @@ produces the number of bytes in the file "/%/path/to/hoon/file."
259
259
260`/,` is a switch statement, which picks a branch to evaluate based on
260`/,` is a switch statement, which picks a branch to evaluate based on
261whether the current path matches the path in the switch statement.
261whether the current path matches the path in the switch statement.
262−Takes a sequence of pairs of (path, horn) terminated by a `==`.
262+Takes a sequence of pairs of (path, horn) terminated by a `==`. No wide-form.
263
263
264Example:
264Example:
265```
265```
@@ -278,7 +278,7 @@ produces: `'evaluate-me'`
278
278
279### `/.` list
279### `/.` list
280
280
281−Produce a null-terminated list from a sequence of horns, terminated by a `==`.
281+Produce a null-terminated list from a sequence of horns, terminated by a `==`. No wide-form.
282
282
283Example:
283Example:
284```
284```
@@ -319,6 +319,8 @@ produces: `1`
319
319
320Without the cast, we wouldn't be able to access the 'i' face of the list.
320Without the cast, we wouldn't be able to access the 'i' face of the list.
321
321
322+Wide-form `/^` uses `^` as a delimiter: `/^(list @)^/~[1 2 3 ~]`
323+
322### `/#` insert dephash
324### `/#` insert dephash
323
325
324`/#` takes a horn and produces a cell of the dependency
326`/#` takes a horn and produces a cell of the dependency
@@ -337,6 +339,8 @@ of the JavaScript file we loaded from clay. The second is an auto-update
337script that polls the server to check whether the dependency hash has changed.
339script that polls the server to check whether the dependency hash has changed.
338This pattern is used in urbit's `tree` web publishing system.
340This pattern is used in urbit's `tree` web publishing system.
339
341
342+Wide-form `/#` does not need a delimiter:
343+`/= inline /^ {dep/@uvH txt/@t} /#/:/%/my-script:/js/`
340
344
341### `/$` process extra arguments
345### `/$` process extra arguments
342
346
@@ -358,3 +362,5 @@ Example:
358```
362```
359produces: [%who '~zod' %where /ford/pages/web %case 60]
363produces: [%who '~zod' %where /ford/pages/web %case 60]
360
364
365+Wide-form `/$` takes its arguments inside brackets, like `/~`:
366+`/=gas=/$[fuel]`