From a9f686f7082457d2dd3405f2622fec9aaf203557 Mon Sep 17 00:00:00 2001 From: Cliff Click Date: Fri, 6 Dec 2024 09:56:44 -0800 Subject: Update README.md --- chapter18/README.md | 3 +++ 1 file changed, 3 insertions(+) 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'` -- cgit v1.2.3