Category talk:Wren-llist: Difference between revisions

m
→‎Source code: Minor change to exchange() methods.
(→‎Source code: Added copy() methods.)
m (→‎Source code: Minor change to exchange() methods.)
Line 273:
// Exchanges the elements at indices 'i' and 'j' of the current instance.
exchange(i, j) {
if (i == j) return
var t = this[i]
this[i] = this[j]
Line 734 ⟶ 735:
// Exchanges the elements at indices 'i' and 'j' of the current instance.
exchange(i, j) {
if (i == j) return
var t = this[i]
this[i] = this[j]
9,485

edits