Version française
Home     About     Download     Resources     Contact us    
Browse thread
Snd question
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Richard Jones <rich@a...>
Subject: Re: [Caml-list] Snd question
On Tue, Aug 16, 2005 at 05:34:38PM +0100, Jon Harrop wrote:
> Currently, you cannot match [|1; ...|] in OCaml.

Yes!  Or, "prefix" ^ str.

> > It would actually be nice to have more general support
> > for polyadic tuple management: for example thinking about
> > obtaining a slice of a tuple, or concatenating two tuples,
> > suggests that just getting the n'th component is special case.
> 
> From my limited experience of SML, it is more of a pain than a benefit.

It'd be pretty trivial anyway to define the SML #<number> operators
using camlp4.

Rich.

-- 
Richard Jones, CTO Merjis Ltd.
Merjis - web marketing and technology - http://merjis.com
Team Notepad - intranets and extranets for business - http://team-notepad.com