JuliaLang/julia — pull request #4826 by davidssmith (2013-11-16 19:20:52+00:00)
Title: added functions zeros_like, ones_like, infs_like, nans_like

These are incredibly useful in NumPy, and they can be implemented as one-liners in Julia.