nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1583045
)
lib/array: make `copy_to` public
author
Jean Privat
<jean@pryen.org>
Fri, 5 Dec 2014 01:52:30 +0000
(20:52 -0500)
committer
Jean Privat
<jean@pryen.org>
Fri, 5 Dec 2014 01:52:30 +0000
(20:52 -0500)
Signed-off-by: Jean Privat <jean@pryen.org>
lib/standard/collection/array.nit
patch
|
blob
|
history
diff --git
a/lib/standard/collection/array.nit
b/lib/standard/collection/array.nit
index
331a9d9
..
add6077
100644
(file)
--- a/
lib/standard/collection/array.nit
+++ b/
lib/standard/collection/array.nit
@@
-109,7
+109,7
@@
abstract class AbstractArrayRead[E]
# var b = [10, 20, 30, 40, 50]
# a.copy_to(1, 2, b, 2)
# assert b == [10, 20, 2, 3, 50]
- protected fun copy_to(start: Int, len: Int, dest: AbstractArray[E], new_start: Int)
+ fun copy_to(start: Int, len: Int, dest: AbstractArray[E], new_start: Int)
do
# TODO native one
var i = len