Skip to content

Commit 8f0532f

Browse files
committed
Update for 0.18 syntax changes
Thanks to @ldesgoui for pointing these out in #663
1 parent 9a06f0f commit 8f0532f

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/pages/docs/syntax.elm

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,9 @@ True && not (True || False)
8585
8686
### Lists
8787
88-
Here are four things that are equivalent:
88+
Here are three things that are equivalent:
8989
9090
```elm
91-
[1..4]
9291
[1,2,3,4]
9392
1 :: [2,3,4]
9493
1 :: 2 :: 3 :: 4 :: []
@@ -196,7 +195,7 @@ square =
196195
\\n -> n^2
197196
198197
squares =
199-
List.map (\\n -> n^2) [1..100]
198+
List.map (\\n -> n^2) (List.rang 1 100)
200199
```
201200
202201
### Infix Operators
@@ -301,10 +300,9 @@ ys = [4,5,6]
301300
302301
-- All of the following expressions are equivalent:
303302
a1 = append xs ys
304-
a2 = (++) xs ys
303+
a2 = xs ++ ys
305304
306-
b1 = xs `append` ys
307-
b2 = xs ++ ys
305+
b2 = (++) xs ys
308306
309307
c1 = (append xs) ys
310308
c2 = ((++) xs) ys

0 commit comments

Comments
 (0)