From: Roelof Wobben <r.wobben@home.nl>
To: caml-list@inria.fr
Subject: [Caml-list] why is the variable here unbound.
Date: Wed, 05 Nov 2014 19:46:36 +0100 [thread overview]
Message-ID: <545A708C.6060900@home.nl> (raw)
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
next reply other threads:[~2014-11-05 18:46 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-05 18:46 Roelof Wobben [this message]
2014-11-05 18:54 ` Malcolm Matalka
[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=545A708C.6060900@home.nl \
--to=r.wobben@home.nl \
--cc=caml-list@inria.fr \
/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