W3C home > Mailing lists > Public > public-qt-comments@w3.org > January 2003

F&O: subsequence and item-at

From: Oliver Becker <obecker@informatik.hu-berlin.de>
Date: Mon, 20 Jan 2003 16:00:47 +0100 (MET)
Message-Id: <200301201500.h0KF0lj26663@mail.informatik.hu-berlin.de>
To: public-qt-comments@w3.org


concerning the subsequence function I would suggest to specify it
similary to substring. This would be consistent and answer such
questions like "what if $startingLoc is negative" etc.

Additionally, item-at($seq, $pos) should IMO return the same as
subsequence($seq, $pos, 1)
i.e. instead of raising an error "Invalid position" this function
would return the empty sequence if $pos is out of bounds.
This poses the question if item-at is necessary at all, since
subsequence($seq, $pos, 1) would do the task.

Kind regards,

|  ob|do        Dipl.Inf. Oliver Becker                             |
|  --+--        E-Mail: obecker@informatik.hu-berlin.de             |
|  op|qo        WWW:    http://www.informatik.hu-berlin.de/~obecker |
Received on Monday, 20 January 2003 10:23:26 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:11 UTC