English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
jabbr
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-02-10 (20:55)
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/