diff options
| author | we-build-dreams <eniomauro@gmail.com> | 2015-12-10 12:21:21 +0000 | 
|---|---|---|
| committer | we-build-dreams <eniomauro@gmail.com> | 2015-12-10 12:21:21 +0000 | 
| commit | fb4f346686e49658d3d74f6656b20138649cfedd (patch) | |
| tree | 656ea1a03bb377df1301e37bdc413b065dde1923 | |
| parent | 1f76b2ad8c35b6c7e8ac2cc5dac8f20bc74f09ef (diff) | |
Update elm.html.markdown
only typos
| -rw-r--r-- | elm.html.markdown | 10 | 
1 files changed, 5 insertions, 5 deletions
diff --git a/elm.html.markdown b/elm.html.markdown index 8c191509..f8564c4b 100644 --- a/elm.html.markdown +++ b/elm.html.markdown @@ -76,13 +76,13 @@ snd ("elm", 42) -- 42  -- Records are like tuples but the fields have names.  -- Notice that equals signs, not colons, are used. -{ x = 3, y = 7} +{ x = 3, y = 7 }  -- Access a field with a dot and the field name. -{ x = 3, y = 7}.x -- 3 +{ x = 3, y = 7 }.x -- 3  -- Or with an accessor fuction, a dot and then the field name. -.y { x = 3, y = 7} -- 7 +.y { x = 3, y = 7 } -- 7  -- Update the fields of a record. (It must have the fields already.)  { person | @@ -126,7 +126,7 @@ case List.head aList of  multiply a b =    a * b --- Apply (call) a function by passing it arguments (no commas necessay). +-- Apply (call) a function by passing it arguments (no commas necessary).  multiply 7 6 -- 42  -- Partially apply a function by passing only some of its arguments. @@ -168,7 +168,7 @@ fib n =    else      fib (n - 1) + fib (n - 2) -List.map fib [0..8] -- [1, 1, 2, 3, 5, 8,13, 21, 34] +List.map fib [0..8] -- [1, 1, 2, 3, 5, 8, 13, 21, 34]  listLength aList =    case aList of  | 
