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: Alan Falloon <Al.Falloon@s...>
Subject: Re: [Caml-list] Re: Snd question
Julian Brown wrote:

>On 2005-08-16, skaller <skaller@users.sourceforge.net> wrote:
>  
>
>>On Mon, 2005-08-15 at 16:41 -0600, Matt Gushee wrote:
>>    
>>
>>I think the original question really meant:
>>
>>Why aren't "fst" and "snd" properly generic??
>>
>>For example this simply *should* work:
>>
>>	snd (1,2,3)
>>    
>>
>
>What's wrong with arrays (or lists, for that matter), if you want to do
>this type of operation?
>  
>
I think he also meant that it should work with tuples that actually use 
different types in each position.
So this should work:

snd ( 1, "foo", 1.2 )