2015-11-18 06:14:39 +00:00
|
|
|
slurp(s) = readcsv(IOBuffer(s))
|
2013-10-27 22:24:23 +00:00
|
|
|
|
2015-11-18 06:14:39 +00:00
|
|
|
conv(s)= colon(map(x->parse(Int,x),match(r"^(-?\d+)-(-?\d+)$", s).captures)...)
|
2013-10-27 22:24:23 +00:00
|
|
|
|
2015-11-18 06:14:39 +00:00
|
|
|
expand(s) = mapreduce(x -> isa(x,Number)? Int(x) : conv(x), vcat, slurp(s))
|