Created
June 20, 2015 12:27
-
-
Save davidagold/145e0a0f41f6d1baa915 to your computer and use it in GitHub Desktop.
map
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Base.map!{F}(f::F, | |
dest::NullableArray, | |
A::AbstractArray) # -> NullableArray{T, N} | |
local func | |
function func(dest, A) | |
for i in 1:length(dest) | |
dest[i] = f(A[i]) | |
end | |
end | |
func(dest, A) | |
dest | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment