caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Jean-Christophe Filliatre <filliatr@lri.fr>
To: "altavillasalvatore@libero.it" <altavillasalvatore@libero.it>
Cc: caml-list <caml-list@inria.fr>
Subject: Re: [Caml-list] small exercise
Date: Fri, 29 Nov 2002 16:32:45 +0100	[thread overview]
Message-ID: <15847.34973.228099.72737@lri.lri.fr> (raw)
In-Reply-To: <H6CFX2$DB3343D5BB847C637A82FD5C6BE8421E@libero.it>


 > input:  string    "1.15.120.13.43.35.340.190.0"
 > 
 > output: int array=  [| 1; 15; 120; 13; 43; 35; 340; 190; 0; |] 

        Objective Caml version 3.06

# #load "str.cma";;
# List.map int_of_string 
    (Str.split (Str.regexp "\\.") "1.15.120.13.43.35.340.190.0");;
- : int list = [1; 15; 120; 13; 43; 35; 340; 190; 0]

      parent reply	other threads:[~2002-11-29 15:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-11-29 15:19 altavillasalvatore
2002-11-29 15:29 ` Xavier Leroy
2002-11-29 18:29   ` Pierre Weis
2002-11-29 15:30 ` Christophe Raffalli
2002-11-29 18:48   ` Pierre Weis
2002-11-29 15:32 ` Jean-Christophe Filliatre [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=15847.34973.228099.72737@lri.lri.fr \
    --to=filliatr@lri.fr \
    --cc=Jean-Christophe.Filliatre@lri.fr \
    --cc=altavillasalvatore@libero.it \
    --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;
as well as URLs for NNTP newsgroup(s).