Skip to content

Instantly share code, notes, and snippets.

@zmaril
Created October 9, 2013 16:55
Show Gist options
  • Save zmaril/6904495 to your computer and use it in GitHub Desktop.
Save zmaril/6904495 to your computer and use it in GitHub Desktop.
map_with_indexed for julia
function map_with_indexed(f,cs...)
args = Any[f,]
push!(args,1:endof(first(cs)))
for c in cs
push!(args,c)
end
apply(map,args)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment