My function randBinStr produces a random string of 0s and 1s of given 
length.

julia> typeof( randBinStr(5) )
ASCIIString (constructor with 1 method)


julia> test = [ randBinStr(5) for i=1:2 ] 
2-element Array{Union(ASCIIString,UTF8String),1}:
 "01110"
 "00011"


julia> map( typeof, test )
2-element Array{DataType,1}:
 ASCIIString
 ASCIIString


Why does comprehension introduce the UTF*String into the type?

Reply via email to