Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Formatting

  • Loading branch information...
commit 8c12dd1172124c594e83e1f119d1d4763f66416f 1 parent e41f587
@nddrylliog authored
Showing with 3 additions and 1 deletion.
  1. +3 −1 excerpts/arraylist-remove.ooc
View
4 excerpts/arraylist-remove.ooc
@@ -1,6 +1,8 @@
removeAt: func (index: SSizeT) -> T {
element := data[index]
- memmove(data + (index * T size), data + ((index + 1) * T size), (_size - index) * T size)
+ memmove(data + (index * T size),
+ data + ((index + 1) * T size),
+ (_size - index) * T size)
_size -= 1
element
}
Please sign in to comment.
Something went wrong with that request. Please try again.