JuliaLang/julia — pull request #740 by toivoh (2012-04-19 21:04:01+00:00)
Title: Check length/shape compatibility of arguments to map

In tuple.jl and cell.jl, just needs to make sure all lengths are equal.
Added function `length_checked_equal(args...)` in tuple.jl for the common parts of this.
Since there's a for loop, it won't run until after int.jl is loaded. But it seems that it doesn't, boots fine.

In array.jl, uses `promote_shape` to reduce arguments shapes into result shape. Makes sure result always has this shape.

Didn't find any other map implementations in base/ with this issue.