- From: Kay, Michael <Michael.Kay@softwareag.com>
- Date: Wed, 20 Nov 2002 20:11:47 +0100
- To: Priscilla Walmsley <priscilla@walmsley.com>
- Cc: public-qt-comments@w3.org
The current specification inserts the new items after the Nth item of the existing sequence. You want to insert the new items before the Nth item of the existing sequence. It's not clear to me that this is an improvement: the choice seems essentially arbitrary. Michael Kay Software AG > -----Original Message----- > From: Priscilla Walmsley [mailto:priscilla@walmsley.com] > Sent: 20 November 2002 15:43 > To: public-qt-comments@w3.org > Subject: F&O comments on insert function > > > > > > > The description of the insert function says: > > "The value returned by the function consists of all items of > $target whose index is less than or equal to N, followed by > all items of $inserts, followed by the remaining elements of > $target, in that sequence." > > So, that would mean that > > insert( (1, 2, 3), 2, ("x", "y")) > > would return > > (1, 2, "x", "y", 3) > > That doesn't seem intuitive to me; I would expect it to be > inserted one position earlier: > > (1, "x", "y", 2, 3) > > Should the text say "less than N" instead of "less than or > equal to N", or was that deliberate? > > Thanks, > Priscilla >
Received on Wednesday, 20 November 2002 14:11:57 UTC