X-Git-Url: http://lambda.jimpryor.net/git/gitweb.cgi?p=lambda.git;a=blobdiff_plain;f=translating_between_OCaml_Scheme_and_Haskell.mdwn;h=20e10b50eb2f20140ecd74738ff21bea4fd5b5cb;hp=2300069a36826966be79a7c67857e88254ace814;hb=3eecfe50b9edee528e55ed348bdd20d73e0ca814;hpb=c502c251f0d7de9c13847efb96b9d5807b8defd9 diff --git a/translating_between_OCaml_Scheme_and_Haskell.mdwn b/translating_between_OCaml_Scheme_and_Haskell.mdwn index 2300069a..20e10b50 100644 --- a/translating_between_OCaml_Scheme_and_Haskell.mdwn +++ b/translating_between_OCaml_Scheme_and_Haskell.mdwn @@ -299,7 +299,7 @@ So we have: List.map (fun x -> x * x) (List.filter odd [1..10]);; -* In Haskell, the expressions "abc" and ['a','b','c'] are equivalent. (Strings are just lists of chars.) In OCaml, these expressions have two different types. +* In Haskell, the expressions `"abc"` and `['a','b','c']` are equivalent. (Strings are just lists of chars.) In OCaml, these expressions have two different types. Haskell uses the operator `++` for appending both strings and lists (since Haskell strings are just one kind of list). OCaml uses different operators: