Thorbjørn Lindeijer
d7a91117ac
Reverse the argument order of List.insert
...
The previous order, insert(element, index), was counter-intuitive.
I'm not aware of any list API that uses this order. I've checked:
* Ruby Array.insert(index, obj...)
* JavaScript array.splice(start, deleteCount[, item1[, item2[, ...]]])
* C++ / QList::insert(int i, const T & value)
* C++ / std::vector::insert
* Lua table.insert (list, [pos,] value)
* C# List<T>.Insert(int index, T item)
* Java Interface List<E>.add(int index, E element)
* Python list.insert(i, x)
So it seemed to me more like an oversight in Wren.
2015-03-15 22:51:24 +01:00
..
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-15 22:51:24 +01:00
2015-03-15 22:51:24 +01:00
2015-03-15 22:51:24 +01:00
2015-03-15 22:51:24 +01:00
2015-03-15 22:51:24 +01:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00
2015-03-14 12:45:56 -07:00