Version franaise
Home About Download Resources Contact us
Browse thread
[Caml-list] small_exercise
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Jean-Christophe Filliatre <filliatr@l...>
Subject: Re: [Caml-list] small_exercise

 > 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]칻&ޙq+-zb~+rzmqzi
ަmjib~ۊji[mqzi?"wXm஋&(+Ʀyޮ