On Friday, May 16, 2014 2:09:03 AM UTC-5, Tony Fong wrote: > > Hello, new user and subscriber here. Is there a way to decompose a > UnionType back into its constituent type(s)? > > I tried names(): > > > dt = Union(Int,Float64) > > names(dt) > 1-element Array{Symbol,1}: > :types > > convert() seems to hit dead-ends. >
Lest it be lost, in a follow-up which he couldn't post at the time, Tony also asked: "* with a Composite Type, is there a way to get the type of a field? (I only have a type, but not a value of the composite type)" Sorry it took so long to get your post moderated; you can post freely now (we do a first-time posters moderation to avoid some nasty spam we've had in the past.)