Re: Do I understand this right
| Newsgroups | gmane.comp.lang.ocaml.beginners |
|---|---|
| Message-ID | <CAFrFfuG5L2Aj89h8-0ZVNBJDhNMu4175b2smmE602k_GPnLAsw@mail.gmail.com> |
Hi Roelof, Have you worked your way through the tutorial at http://try.ocamlpro.com/ yet? I think it will help you with a lot of the difficulties you are having. martin On Fri, Nov 7, 2014 at 6:53 AM, Robert Jakob [email protected] [ocaml_beginners] <[email protected]> wrote: > > > > Im still struggeling with chapter 4 and I see this : > Chapter 4 of what? > > > (string * int) list > > > > Am I right that I must see it like this [ [hhshsh, 1] ] > No, that is not correct. > > int list is a type whose values look like this: [1;2;3;4] > (string * int) is a pair type whose values are a string in the first > component and > an integer in the second, e.g., (“hello”, 42) > > The composition of both, (string * int) list is thus a list whose > elements are pairs of strings and integers. Values thus look like this: > [(“hello”, 1) ; (“foo”,42)] > > r. > > ------------------------------------ > > ------------------------------------ > > Archives up to December 31, 2011 are also downloadable at > http://www.connettivo.net/cntprojects/ocaml_beginners > The archives of the very official ocaml list (the seniors' one) can be > found at http://caml.inria.fr > Attachments are banned and you're asked to be polite, avoid flames etc. > ------------------------------------ > > Yahoo Groups Links > > > >