Version française
Home     About     Download     Resources     Contact us    
Browse thread
jabbr
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Olivier Andrieu <andrieu@i...>
Subject: Re: [Caml-list] Newbe question: Strings <-> char lists
 Juancarlo Añez [Thu, 10 Feb 2005]:
 > 
 > How does one convert a char list to a string?

Several possibilities :
 - read the replies to your previous message
 - read the FAQ
 - subscribe to the beginner's list http://groups.yahoo.com/group/ocaml_beginners

 > Why aren't functions for converting char lists to strings and back
 > part of the standard library.

It's mighty inefficient in terms of memory : in a string one character
take approximately 1 byte, in a char list it needs 3 words (12 bytes
on IA32).

-- 
   Olivier