Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Christophe Raffalli <christophe.raffalli@univ-savoie.fr>
To: Jan Stamer <jan.stamer@neptun.uni-freiburg.de>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] Concatenation of int and String
Date: Sat, 23 Oct 2004 22:31:12 +0200	[thread overview]
Message-ID: <417ABF90.6040603@univ-savoie.fr> (raw)
In-Reply-To: <41793364.5010507@neptun.uni-freiburg.de>

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

Jan Stamer wrote:
> Hi Folks,
> 
> I am very new to OCaml and I am taking my first steps at the moment...
> 
> Can you tell me how to concatenate a int and a String?
> 
> Thanks Jan
> 

string_of_int 2 ^ "toto"

or

Printf.sprintf "%d%s" 2 "toto"


-- 
Christophe Raffalli
Université de Savoie
Batiment Le Chablais, bureau 21
73376 Le Bourget-du-Lac Cedex

tél: (33) 4 79 75 81 03
fax: (33) 4 79 75 87 42
mail: Christophe.Raffalli@univ-savoie.fr
www: http://www.lama.univ-savoie.fr/~RAFFALLI
---------------------------------------------
IMPORTANT: this mail is signed using PGP/MIME
At least Enigmail/Mozilla, mutt or evolution
can check this signature. The public key is
stored on www.keyserver.net
---------------------------------------------

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]

      parent reply	other threads:[~2004-10-23 20:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-22 16:20 Jan Stamer
2004-10-22 14:24 ` Richard Jones
2004-10-23 20:31 ` Christophe Raffalli [this message]

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=417ABF90.6040603@univ-savoie.fr \
    --to=christophe.raffalli@univ-savoie.fr \
    --cc=caml-list@inria.fr \
    --cc=jan.stamer@neptun.uni-freiburg.de \
    /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