Re: Do I understand this right

"Robert Jakob [email protected] [ocaml_beginners]" <[email protected]>
Newsgroups gmane.comp.lang.ocaml.beginners
Message-ID <[email protected]>
> 
> 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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/ocaml_beginners/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/ocaml_beginners/join
    (Yahoo! ID required)

<*> To change settings via email:
    [email protected] 
    [email protected]

<*> To unsubscribe from this group, send an email to:
    [email protected]

<*> Your use of Yahoo Groups is subject to:
    https://info.yahoo.com/legal/us/yahoo/utos/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.