Skip to content
This repository was archived by the owner on May 4, 2019. It is now read-only.

Commit d0a0b3a

Browse files
committed
Merge pull request #75 from JuliaStats/sjk/copy!
Remove copy! definition
2 parents af6cb90 + 722a60f commit d0a0b3a

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

src/abstractdataarray.jl

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -28,29 +28,6 @@ typealias AbstractDataMatrix{T} AbstractDataArray{T, 2}
2828
#' T = eltype(dv)
2929
Base.eltype{T, N}(d::AbstractDataArray{T, N}) = T
3030

31-
#' @description
32-
#' Copy the elements of `src` into the AbstractDataArray, `dest`.
33-
#'
34-
#' @param dest::AbstractDataArray The AbstractDataArray that will
35-
#' be written into.
36-
#' @param src::Any The iterable object whose contents will be copied
37-
#' into `dest`.
38-
#'
39-
#' @returns dest::AbstractDataArray The modified version of `dest` is
40-
#' returned for convenience.
41-
#'
42-
#' @examples
43-
#'
44-
#' dv = @data [false, false, true, false]
45-
#' v = [true, true, true, false]
46-
#' copy!(dv, v)
47-
function Base.copy!(dest::AbstractDataArray, src::Any)
48-
for i in 1:length(src)
49-
dest[i] = src[i]
50-
end
51-
return dest
52-
end
53-
5431
# Generic iteration over AbstractDataArray's
5532

5633
# TODO: Document

0 commit comments

Comments
 (0)