Skip to content

Commit 926440b

Browse files
authored
Merge pull request #52 from mkantor/polish-readme
Polish README
2 parents fc1e9fb + 967c5ea commit 926440b

File tree

1 file changed

+9
-17
lines changed

1 file changed

+9
-17
lines changed

README.md

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff 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:
149136
Functions 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

155144
Functions 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

0 commit comments

Comments
 (0)