# Set the `item` at `index`.
#
# var a = [10,20,30]
# a[1] = 200
# assert a == [10,200,30]
#
# like with `[]`, index should be between `0` and `length-1`
# However, if `index==length`, `[]=` works like `push`.
#
# a[3] = 400
# assert a == [10,200,30,400]
#
# REQUIRE `index >= 0 and index <= length`
fun []=(index: Int, item: E) is abstract
lib/core/collection/abstract_collection.nit:1167,2--1180,41
redef fun []=(index, value)
do
var node = node_at(index)
index = index_within_node + node.head_index
node.items[index] = value
end
lib/more_collections/more_collections.nit:420,2--425,4