Re: Do I understand this right
| Newsgroups | gmane.comp.lang.ocaml.beginners |
|---|---|
| Message-ID | <CAFzMiE1DRFqDh1hhmqRZ+3q644UZwhhvwnKPqTo38yZj=jLG0w@mail.gmail.com> |
Hi,
'[' and ']' denote a list. So [ [hhshsh, 1] ] represent a list with one
element being itself a list of one element begin a tuple.
A value of type (string * int) list would be: [("foo", 2); ("bar", 42)]
(parenthesis are optional)
Cheers,
Esther Baruk
On Fri, Nov 7, 2014 at 3:38 PM, Roelof Wobben [email protected]
[ocaml_beginners] <[email protected]> wrote:
>
>
> Hello,
>
> Im still struggeling with chapter 4 and I see this :
>
> (string * int) list
>
> Am I right that I must see it like this [ [hhshsh, 1] ]
>
> Roelof
>
>