[rust-dev] Range vector initialization

Alexander Stavonin a.stavonin at gmail.com
Mon Apr 15 02:46:28 PDT 2013

I always thought that it is possible to write next code:

let box_box = ~[1 .. 5];

And obtain the vector with [1, 2, 3, 4, 5], but it doesn't works. What is
the simplest way to do it?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/rust-dev/attachments/20130415/eb32d50f/attachment.html>

More information about the Rust-dev mailing list