summaryrefslogtreecommitdiff
path: root/chapter18
diff options
context:
space:
mode:
authorCliff Click <cliffc@acm.org>2024-12-06 09:56:44 -0800
committerCliff Click <cliffc@acm.org>2025-01-15 15:07:30 -0800
commita9f686f7082457d2dd3405f2622fec9aaf203557 (patch)
tree9e8c439d140f5cebeed50f8cd7bea873a86e8828 /chapter18
parent38f6455c83dd68c80b2f667388d45cf6a28688ee (diff)
downloadSimple-a9f686f7082457d2dd3405f2622fec9aaf203557.tar.gz
Simple-a9f686f7082457d2dd3405f2622fec9aaf203557.zip
Update README.md
Diffstat (limited to 'chapter18')
-rw-r--r--chapter18/README.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/chapter18/README.md b/chapter18/README.md
index 46c3790f..606ac9a8 100644
--- a/chapter18/README.md
+++ b/chapter18/README.md
@@ -102,6 +102,9 @@ value. Since it was loaded from the field, the function is **pre-bound**
(curried) to the `self` it was loaded from.
`{int->u8} atCliff = name.at; // The "at" for Cliff; function does not take a String anymore`
+
`var atHello = greet.at;`
+
`atCliff[0]; // Returns 'C'`
+
`atHello[0]; // Returns 'H'`