From: Eric Cooper <ecc@cmu.edu>
To: caml-list@inria.fr
Subject: Re: [Caml-list] applying labled argument error
Date: Fri, 8 Nov 2013 23:27:38 -0500 [thread overview]
Message-ID: <20131109042738.GC4409@cooper-siegel.org> (raw)
In-Reply-To: <1383968015.11272.YahooMailNeo@web160505.mail.bf1.yahoo.com>
On Fri, Nov 08, 2013 at 07:33:35PM -0800, Jean Saint-Remy wrote:
> let ar = Array.init 20 ~f:(fun i -> i) ;;
> -: "Error: The function applied to this argument has type (int -> 'a) -> 'a
> array
> This argument cannot be applied with label ~f."
Put
module Array = Arraylabels
at the top of your program, or explicitly call ArrayLabels.init.
--
Eric Cooper e c c @ c m u . e d u
next prev parent reply other threads:[~2013-11-09 4:27 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-09 3:33 Jean Saint-Remy
2013-11-09 4:27 ` Eric Cooper [this message]
2013-11-09 10:07 ` Gabriel Kerneis
2013-11-09 17:57 ` Jean Saint-Remy
2013-11-09 18:39 ` Anthony Tavener
2013-11-09 18:42 ` Anil Madhavapeddy
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=20131109042738.GC4409@cooper-siegel.org \
--to=ecc@cmu.edu \
--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