diff options
| author | Cliff Click <cliffc@acm.org> | 2024-12-06 09:56:44 -0800 |
|---|---|---|
| committer | Cliff Click <cliffc@acm.org> | 2025-01-15 15:07:30 -0800 |
| commit | a9f686f7082457d2dd3405f2622fec9aaf203557 (patch) | |
| tree | 9e8c439d140f5cebeed50f8cd7bea873a86e8828 /chapter18 | |
| parent | 38f6455c83dd68c80b2f667388d45cf6a28688ee (diff) | |
| download | Simple-a9f686f7082457d2dd3405f2622fec9aaf203557.tar.gz Simple-a9f686f7082457d2dd3405f2622fec9aaf203557.zip | |
Update README.md
Diffstat (limited to 'chapter18')
| -rw-r--r-- | chapter18/README.md | 3 |
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'` |
