on master help sign in
Merge pull request #1311 from urbit/gall-guide-explain-a-plus-b
57fafc6poprox
content/docs/userspace/gall-guide/4-lifecycle.md+12
@@ -445,6 +445,18 @@ new type - in this case by duplicating `val` and changing the head-tag from `%0`
445to `%1`. This is an extremely simple state type transition function - it would
445to `%1`. This is an extremely simple state type transition function - it would
446likely be more complicated for an agent with real functionality.
446likely be more complicated for an agent with real functionality.
447
447
448+Note: the `a+b` syntax (as in `1+[val.old val.old]`) forms a cell of the
449+constant `%a` and the noun `b`. The constant may either be an integer or a `@tas`.
450+For example:
451+
452+```
453+> foo+'bar'
454+[%foo 'bar']
455+
456+> 42+'bar'
457+[%42 'bar']
458+```
459+
448Let's now use `dbug` to confirm our state has successfully been updated to the new
460Let's now use `dbug` to confirm our state has successfully been updated to the new
449type:
461type:
450
462