From: Guillaume Yziquel <guillaume.yziquel@citycable.ch>
To: Raoul Duke <raould@gmail.com>
Cc: OCaml <caml-list@inria.fr>
Subject: Re: [Caml-list] return type annotation syntax?
Date: Thu, 27 Jan 2011 01:01:51 +0100 [thread overview]
Message-ID: <20110127000058.GN4195@localhost> (raw)
In-Reply-To: <AANLkTimweZ0DyarqqCYurY=_rYEBVkcO6e5HPDs2Q811@mail.gmail.com>
Le Wednesday 26 Jan 2011 à 15:54:48 (-0800), Raoul Duke a écrit :
> hi,
>
> how do i annotate/specify the return type of a function i'm writing? i
> see how to specify the type of the input arguments, but i didn't
> figure out how to say what the return type is.
>
> thanks.
let f (x : input_typ) : return_type = ...
--
Guillaume Yziquel
next prev parent reply other threads:[~2011-01-27 0:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-26 23:54 Raoul Duke
2011-01-27 0:01 ` Guillaume Yziquel [this message]
2011-01-27 0:12 ` Raoul Duke
2011-01-27 0:41 ` Guillaume Yziquel
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=20110127000058.GN4195@localhost \
--to=guillaume.yziquel@citycable.ch \
--cc=caml-list@inria.fr \
--cc=raould@gmail.com \
/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