[mercury-users] tuple access

Julien Fischer juliensf at csse.unimelb.edu.au
Mon Sep 24 22:31:37 AEST 2007


On Mon, 24 Sep 2007, Simon Taylor wrote:

> On 9/24/07, Julien Fischer <juliensf at csse.unimelb.edu.au> wrote:
>>
>> On Mon, 24 Sep 2007, Nicholas Nethercote wrote:
>>
>>> Is there a standard function for extracting the Nth element of a tuple?
>>
>> No.
>
> deconstruct.arg/4 should work.

That seems a fairly heavyweight way of doing it.

Julien.
--------------------------------------------------------------------------
mercury-users mailing list
Post messages to:       mercury-users at csse.unimelb.edu.au
Administrative Queries: owner-mercury-users at csse.unimelb.edu.au
Subscriptions:          mercury-users-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the users mailing list