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
[Caml-list] printable digest strings
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-05-04 (22:54)
From: Miles Egan <miles@c...>
Subject: Re: [Caml-list] printable digest strings
On Fri, May 04, 2001 at 01:27:36PM -0700, Chris Hecker wrote:
> map: ('a -> 'b) -> 'a type -> 'b type
> so there's a certain amount of symmetry.  Since string is a builtin, there's no way to have a "float string" or whatever if your function is char -> float.  Is 'a array the right thing to return here, or 'a list?  Or is this a stupid irrelevant question?

Well, list map is:
map : f:('a -> 'b) -> 'a list -> 'b list

So it's more of a 'a sequence -> 'b sequence function.

I don't think I've really gotten the hang of string manipulation in ocaml yet.

To unsubscribe, mail caml-list-request@inria.fr.  Archives: http://caml.inria.fr