Skip to content

Commit b1a8d40

Browse files
committed
Use 🍿 everywhere (#78, close #72)
1 parent 30b94a6 commit b1a8d40

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

β€Žsrc/guides/compile-and-run.md

+7-5
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,10 @@ greetings instead:
7979
```
8080

8181
What happens here exactly? Everything that you list between `🍿` and `πŸ†` is made
82-
into a list. And `➑️` is used to create a constant variable. Maybe this appears
83-
odd at first, but in Emojicode the value for a variable is on the left-hand-side
84-
of `➑️` and the variable name on the right-hand-side.
82+
into a list, which is represented by an instance of type 🍨. The `➑️` operator is
83+
used to create a constant variable. Maybe this appears odd at first, but in
84+
Emojicode the value for a variable is on the left-hand-side of `➑️` and the
85+
variable name on the right-hand-side.
8586

8687
Next, we want to print the first greeting in that list as a test:
8788

@@ -148,8 +149,9 @@ We’ll start off by creating a dictionary to map languages to a greeting:
148149
πŸ‰
149150
```
150151

151-
`🍯` works like 🍨 and creates a dictionary from the listed values. This
152-
dictionary is stored into `dictionary`.
152+
🍿 with can also be used to list key value pairs, where each key is separated
153+
from its value with a ➑️. This will create an instance of 🍯 is stored into
154+
`dictionary`. The type 🍯 is known as dictionary or hash map in other languages.
153155

154156
The method to access a dictionary is also called `🐽`, so intuitively we would
155157
write:

β€Žsrc/reference/controlflow.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ when the type of *iterable* declared its conformance to πŸ”‚πŸšElementπŸ†.
119119
Let’s take a look at an example:
120120

121121
```
122-
πŸ¨πŸ”€treeπŸ”€ πŸ”€beeπŸ”€ πŸ”€leeπŸ”€ πŸ”€meπŸ”€πŸ† ➑️ list
122+
πŸΏπŸ”€treeπŸ”€ πŸ”€beeπŸ”€ πŸ”€leeπŸ”€ πŸ”€meπŸ”€πŸ† ➑️ list
123123
124124
πŸ”‚ name list πŸ‡
125125
πŸ˜€ name❗️

β€Žsrc/reference/references.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ following code does work and it is very desirable that it do so:
66

77
```
88
πŸπŸ‡
9-
🍨🍨 πŸ”€AπŸ”€ πŸ†πŸ† ➑️ πŸ–πŸ†• array
9+
🍿🍿 πŸ”€AπŸ”€ πŸ†πŸ† ➑️ πŸ–πŸ†• array
1010
🐻🐽array 0❗️ πŸ”€BπŸ”€β—οΈ
1111
1212
πŸ˜€ 🐽🐽array 0❗️1❗️❗️
@@ -36,7 +36,7 @@ variable. The following program will therefore panic:
3636

3737
```!
3838
πŸπŸ‡
39-
🍨🍨 πŸ”€AπŸ”€ πŸ†πŸ† ➑️ πŸ–πŸ†• array
39+
🍿🍿 πŸ”€AπŸ”€ πŸ†πŸ† ➑️ πŸ–πŸ†• array
4040
🐽array 0β—οΈβž‘οΈ πŸ–πŸ†• subarray
4141
🐻subarray πŸ”€BπŸ”€β—οΈ
4242

0 commit comments

Comments
Β (0)