Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Malcolm Matalka <mmatalka@gmail.com>
To: Roelof Wobben <r.wobben@home.nl>
Cc: caml-list <caml-list@inria.fr>
Subject: Re: [Caml-list] why is the variable here unbound.
Date: Wed, 5 Nov 2014 19:54:43 +0100	[thread overview]
Message-ID: <CAKziXDVWibToEm+syxLEq_TZmu+SVHpVOYbxzM1QT5Tp+QAQRg@mail.gmail.com> (raw)
In-Reply-To: <545A708C.6060900@home.nl>

[-- Attachment #1: Type: text/plain, Size: 767 bytes --]

I think you mean ... in length2 list []
Den 5 nov 2014 19:47 skrev "Roelof Wobben" <r.wobben@home.nl>:

> Hello,
>
> I asked this question also on the beginners list but till now no respons.
>
> I have this :
>
> let length list =
>     let rec length2 list2 acc =
>         match list2 with
>            | [] -> acc
>            | x::xs -> length2 xs (acc + 1)
>     in acc 0 list2 list ;;
>
> But as soon as I copie it into the ocaml prompt I see a message that the
> acc in the part in acc 0 list2 list is unbound.
>
> Roelof
>
>
>
> --
> Caml-list mailing list.  Subscription management and archives:
> https://sympa.inria.fr/sympa/arc/caml-list
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>

[-- Attachment #2: Type: text/html, Size: 1351 bytes --]

  reply	other threads:[~2014-11-05 18:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-05 18:46 Roelof Wobben
2014-11-05 18:54 ` Malcolm Matalka [this message]
     [not found] ` <CADwd1fMObvvRBbptSmfKq+PaNLqeDUtmjmnPipQ1y7aVDFmduQ@mail.gmail.com>
     [not found]   ` <545A72F7.8020109@home.nl>
     [not found]     ` <CADwd1fMpMU-0srRKqA2q5K=YaKq3HHaFPN-CTMnmJnsyu3f-8Q@mail.gmail.com>
2014-11-05 19:14       ` Roelof Wobben

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAKziXDVWibToEm+syxLEq_TZmu+SVHpVOYbxzM1QT5Tp+QAQRg@mail.gmail.com \
    --to=mmatalka@gmail.com \
    --cc=caml-list@inria.fr \
    --cc=r.wobben@home.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox