[Bug 29685] New: [FO31] array:put()

https://www.w3.org/Bugs/Public/show_bug.cgi?id=29685

            Bug ID: 29685
           Summary: [FO31] array:put()
           Product: XPath / XQuery / XSLT
           Version: Candidate Recommendation
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Functions and Operators 3.1
          Assignee: mike@saxonica.com
          Reporter: mike@saxonica.com
        QA Contact: public-qt-comments@w3.org
  Target Milestone: ---

I do know that we are past the point of adding new functions because they are a
good idea, but in writing an application to make use of arrays recently, I
found the absence of array:put() really painful. That is:

array:put($array, $index, $value)

which returns

$array => array:remove($index) => array:insert-before($index, $value)

that is, it replaces the value at position $index with a new value.

This seems such a basic omission that I wonder if we should consider it even at
this late stage.

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Saturday, 4 June 2016 13:11:48 UTC