caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Miles Egan <miles@caddr.com>
To: Chris Hecker <checker@d6.com>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] printable digest strings
Date: Fri, 4 May 2001 15:54:15 -0700	[thread overview]
Message-ID: <20010504155415.A43444@caddr.com> (raw)
In-Reply-To: <4.3.2.7.2.20010504125129.00e25990@shell16.ba.best.com>; from checker@d6.com on Fri, May 04, 2001 at 01:27:36PM -0700

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


  reply	other threads:[~2001-05-04 22:54 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-03 22:32 Miles Egan
2001-05-04  9:15 ` Hendrik Tews
2001-05-04  9:37 ` Xavier Leroy
2001-05-04 14:00   ` Miles Egan
2001-05-04 14:50     ` Brian Rogoff
2001-05-04 20:27   ` Chris Hecker
2001-05-04 22:54     ` Miles Egan [this message]
2001-05-06 18:56     ` [Caml-list] Wserver: Values of global variables lost Mattias Waldau
2001-05-07  8:58       ` Daniel de Rauglaudre
2001-05-07 17:00       ` Mattias Waldau
2001-05-07 18:16         ` Daniel de Rauglaudre

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20010504155415.A43444@caddr.com \
    --to=miles@caddr.com \
    --cc=caml-list@inria.fr \
    --cc=checker@d6.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).