From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id WAA31978; Sat, 23 Oct 2004 22:31:26 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id WAA31963 for ; Sat, 23 Oct 2004 22:31:25 +0200 (MET DST) Received: from smtp.cegetel.net (mf00.sitadelle.com [212.94.174.77]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id i9NKVPJO016758 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Sat, 23 Oct 2004 22:31:25 +0200 Received: from univ-savoie.fr (80-125-227-25.dti.cegetel.net [80.125.227.25]) by smtp.cegetel.net (Postfix) with ESMTP id CD377671F0; Sat, 23 Oct 2004 22:31:22 +0200 (CEST) Message-ID: <417ABF90.6040603@univ-savoie.fr> Date: Sat, 23 Oct 2004 22:31:12 +0200 From: Christophe Raffalli User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040115 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Jan Stamer Cc: caml-list@inria.fr Subject: Re: [Caml-list] Concatenation of int and String References: <41793364.5010507@neptun.uni-freiburg.de> In-Reply-To: <41793364.5010507@neptun.uni-freiburg.de> X-Enigmail-Version: 0.83.3.0 X-Enigmail-Supports: pgp-inline, pgp-mime Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig89200DF3619406A0D666252F" Content-Transfer-Encoding: 8bit X-Miltered: at concorde with ID 417ABF9D.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Loop: caml-list@inria.fr X-Spam: no; 0.00; raffalli:01 raffalli:01 univ-savoie:01 caml-list:01 openpgp:01 2440:01 3156:01 toto:01 printf:01 sprintf:01 toto:01 savoie:01 chablais:01 73376:01 univ-savoie:01 X-Attachments: type="application/pgp-signature" name="signature.asc" name="signature.asc" Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig89200DF3619406A0D666252F Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit 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 --------------------------------------------- --------------enig89200DF3619406A0D666252F Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFBer+ZSQDyWB/+xBwRAg3BAJ9A1UzXtzPh4u17XbQQvImjKshNhwCdGpxa vssQKNLDSf8LTdLzGltauZo= =ThBx -----END PGP SIGNATURE----- --------------enig89200DF3619406A0D666252F-- ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners