JuliaLang/julia — pull request #1148 by tshort (2012-08-11 00:20:45+00:00)
Title: Dump/idump ellipses for long objects

Here are a couple of changes for issue #1143 (apparent dump bug). The regular array print method looks concise enough to me, so I used that for single-line display. Here are some examples with long elements in Arrays and Dicts.

```julia
julia> dump({1,{1:30,[1:5],[1:50]*pi,3,4,5,6,7,8,9,10,11,12},3,4,5,6,{1:30,[1:5],[1:50]*pi,3,4,5,6,7,8,9,10,11,12},3,4,5,6})
Array(Any,(11,))
1: Int64 1
2: Array(Any,(13,))
1: Range1{Int64}
start: Int64 1
len: Int64 30
2: Array(Int64,(5,)) [1, 2, 3, 4, 5]
3: Array(Float64,(50,)) [3.14159, 6.28319, 9.42478, 12.5664, 15.708, 18.8496 ... 144.513, 147.655, 150.796, 153.938, 157.08]
4: Int64 3
5: Int64 4
...
9: Int64 8
10: Int64 9
11: Int64 10
12: Int64 11
13: Int64 12
3: Int64 3
4: Int64 4
5: Int64 5
...
7: Array(Any,(13,))
1: Range1{Int64}
start: Int64 1
len: Int64 30
2: Array(Int64,(5,)) [1, 2, 3, 4, 5]
3: Array(Float64,(50,)) [3.14159, 6.28319, 9.42478, 12.5664, 15.708, 18.8496 ... 144.513, 147.655, 150.796, 153.938, 157.08]
4: Int64 3
5: Int64 4
...
9: Int64 8
10: Int64 9
11: Int64 10
12: Int64 11
13: Int64 12
8: Int64 3
9: Int64 4
10: Int64 5
11: Int64 6

julia> {1,2,3,dict(tuple([1:30]...,),tuple([1:30]...,)),6,7,8,9,9,9,9,9} | dump
Array(Any,(12,))
1: Int64 1
2: Int64 2
3: Int64 3
4: Dict{Int64,Int64} len 30
5: Int64 5
16: Int64 16
20: Int64 20
12: Int64 12
24: Int64 24
28: Int64 28
8: Int64 8
17: Int64 17
30: Int64 30
1: Int64 1
19: Int64 19
...
5: Int64 6
...
8: Int64 9
9: Int64 9
10: Int64 9
11: Int64 9
12: Int64 9
```