File tree Expand file tree Collapse file tree 1 file changed +9
-17
lines changed Expand file tree Collapse file tree 1 file changed +9
-17
lines changed Original file line number Diff line number Diff line change @@ -125,22 +125,9 @@ Lookups are lexically scoped:
125125 greeting: "Hello, World!"
126126 scope: {
127127 greeting: "Hi, Moon!"
128- a: :greeting
128+ a: :greeting // "Hi, Moon!"
129129 }
130- b: :greeting
131- }
132- ```
133-
134- Output:
135-
136- ```
137- {
138- greeting: "Hello, World!"
139- scope: {
140- greeting: "Hi, Moon!"
141- a: "Hi, Moon!"
142- }
143- b: "Hello, World!"
130+ b: :greeting // "Hello, World!"
144131}
145132```
146133
@@ -149,13 +136,18 @@ Output:
149136Functions take exactly one parameter and their body is exactly one expression:
150137
151138```
152- a => "Hello, World!"
139+ {
140+ make_pair: a => { :a, :a }
141+ }
153142```
154143
155144Functions can be applied:
156145
157146```
158- (a => :a)("Hello, World!")
147+ {
148+ f: a => :a
149+ greeting: :f("Hello, World!")
150+ }
159151```
160152
161153#### Keywords
You can’t perform that action at this time.
0 commit comments