On Thu, Feb 4, 2016 at 5:43 PM, Michael Landis wrote:
> so ... what's the syntax for creating an empty Queue{ByteString}?
>
> qbs = Queue{ByteString}([])# also produces convert errors
I think the document tells you exactly that.
ah, Queue's don't need to be typed, the type is a parameter to the
constructor. Parens, not braces. So, why are Vectors defined as
Vector{ByteString}(vecLength)? Where is the syntactical consistency?
On Thursday, February 4, 2016 at 2:47:52 PM UTC-8, Yichao Yu wrote:
>
> On Thu, Feb 4, 2016
The Queue constructor (like all collection constructors) takes a collection
which it iterates over and converts each value it gets to the expected
element type – in this case ByteString. If you iterate over "1234" you get
'1' then '2' then '3' then '4' – each of which is converted to a string and
The Queue constructors seem to be lagging the newer convention in Julia. In
older versions of Julia it was not possible to do Queue{ByteString}() or
Vector{ByteString}().
On Thu, Feb 4, 2016 at 5:56 PM, Michael Landis
wrote:
> ah, Queue's don't need to be typed, the
DataStructures.Queue is doing strange things for me.
Can someone please post proper syntax for forward declarations of an empty
Queue{ByteString} and maybe an in-line instantiation (if different) so I
can be sure that I am getting the declarations right?
When I do:
using DataStructures;
qbs =
assuming that you know more than I do (a likely circumstance), how do you
explain...
qbs = Queue{ByteString}("1234") # ok
typeof(qbs) # -->
DataStructures.Queue{ByteString}
length(qbs) # --> 4, presumably the
result of
so ... what's the syntax for creating an empty Queue{ByteString}?
qbs = Queue{ByteString}([])# also produces convert errors
>
Thanks for the clarifications... Good to know which code is scheduled for
an update later too.
On Thursday, February 4, 2016 at 3:22:00 PM UTC-8, Stefan Karpinski wrote:
>
> The Queue constructors seem to be lagging the newer convention in Julia.
> In older versions of Julia it was not