You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
########## Example 1: insert the "'b':'b_s'" into dict D by alphabet orderD= {
'a': 'a_s',
# <-----------------------------------'b': 'b_s''c': 'c_s',
}
# expected output:D= {
'a': 'a_s',
'b': 'b_s',
'c': 'c_s',
}
# output actually got:D= {
'a': 'a_s',
'b': 'b_s', 'c': 'c_s',
}
########## Example 2: insert the "'y':'y_s'" into dict D by alphabet orderD= {
'a': 'a_s',
'c': 'c_s',
# <-----------------------------------'y': 'y_s'
}
# expected output:D= {
'a': 'a_s',
'c': 'c_s',
'y': 'y_s',
}
# output actually got:D= {
'a': 'a_s',
'c': 'c_s', 'y': 'y_s',
}
Notes:
This should be supported by a collection_insert (or similar) function, taking the collection node (e.g. a Dict), the node (or nodes) to insert, and the index to insert at. This should result in consistent formatting as described above.
The text was updated successfully, but these errors were encountered:
Original report:
Notes:
This should be supported by a
collection_insert
(or similar) function, taking the collection node (e.g. aDict
), the node (or nodes) to insert, and the index to insert at. This should result in consistent formatting as described above.The text was updated successfully, but these errors were encountered: