Browse thread
[Caml-list] printable digest strings
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
| Date: | -- (:) |
| 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.
--
miles
-------------------
To unsubscribe, mail caml-list-request@inria.fr. Archives: http://caml.inria.fr