diff options
Diffstat (limited to 'chapter18/README.md')
| -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'` |
