diff options
author | Jacob Ward <jacobward1898@gmail.com> | 2015-10-26 23:03:37 -0600 |
---|---|---|
committer | Jacob Ward <jacobward1898@gmail.com> | 2015-10-26 23:03:37 -0600 |
commit | a0eb996415cc86cb72c44e793ebfacc3ec2d7b17 (patch) | |
tree | 516c83684b752f374758b9abd3b89be723478fd3 /ocaml.html.markdown | |
parent | 66bc42e31bf62a1592f9b763e12c0b963b3e7d3d (diff) | |
parent | 44ca091c73afe13ec8760021cfed1d77afc5e4a5 (diff) |
Merge remote-tracking branch 'adambard/master'
Diffstat (limited to 'ocaml.html.markdown')
-rw-r--r-- | ocaml.html.markdown | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ocaml.html.markdown b/ocaml.html.markdown index 02435e4d..8faab297 100644 --- a/ocaml.html.markdown +++ b/ocaml.html.markdown @@ -196,7 +196,7 @@ let (~/) x = 1.0 /. x ;; ~/4.0 (* = 0.25 *) -(*** Built-in datastructures ***) +(*** Built-in data structures ***) (* Lists are enclosed in square brackets, items are separated by semicolons. *) @@ -341,10 +341,10 @@ let say x = say (Cat "Fluffy") ;; (* "Fluffy says meow". *) -(** Traversing datastructures with pattern matching **) +(** Traversing data structures with pattern matching **) (* Recursive types can be traversed with pattern matching easily. - Let's see how we can traverse a datastructure of the built-in list type. + Let's see how we can traverse a data structure of the built-in list type. Even though the built-in cons ("::") looks like an infix operator, it's actually a type constructor and can be matched like any other. *) let rec sum_list l = |