From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id AAA21999; Sat, 5 May 2001 00:54:19 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id AAA22125 for ; Sat, 5 May 2001 00:54:18 +0200 (MET DST) Received: from www.invert.com (invert.com [209.164.21.15]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f44MsHr15824 for ; Sat, 5 May 2001 00:54:17 +0200 (MET DST) Received: (from miles@localhost) by www.invert.com (8.10.1/8.10.1AA) id f44MsFJ43489; Fri, 4 May 2001 15:54:15 -0700 (PDT) (envelope-from miles) Date: Fri, 4 May 2001 15:54:15 -0700 From: Miles Egan To: Chris Hecker Cc: caml-list@inria.fr Subject: Re: [Caml-list] printable digest strings Message-ID: <20010504155415.A43444@caddr.com> References: <20010503153234.A28259@caddr.com> <20010503153234.A28259@caddr.com> <20010504113727.A9728@pauillac.inria.fr> <4.3.2.7.2.20010504125129.00e25990@shell16.ba.best.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i 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 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk 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