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: Marcin 'Qrczak' Kowalczyk <qrczak@k...>
Subject: Re: [Caml-list] Newbe question: Strings <-> char lists
Juancarlo Añez <juanca@suigeneris.org> writes:

>  | As far as I now, Haskell actually implements strings as 
>  | lists of characters, 
>
> I'm pretty sure that Haskell lets you *treat* strings as list of
> characters, yet provides an efficient implementation of strings
> underneath.

No, it's really a lazy list of characters underneath. There are
non-standard extensions, packed strings, but they a separate type.

-- 
   __("<         Marcin Kowalczyk
   \__/       qrczak@knm.org.pl
    ^^     http://qrnik.knm.org.pl/~qrczak/