× {{alert.msg}} Never ask again
Get notified about new tutorials RECEIVE NEW TUTORIALS

How to convert a static array to a dynamic one?

Chris Morgan
Jul 15, 2015
<p>If you take a reference to it (<code>&amp;xs</code>), you’ll have something of type <code>&amp;[Foo; 3]</code>, which coerces freely to the dynamically sized slice <code>&amp;[Foo]</code>.</p> <p>This tip was originally posted on <a href="http://stackoverflow.com/questions/31175723/How%20to%20convert%20a%20static%20array%20to%20a%20dynamic%20one?/31175918">Stack Overflow</a>.</p>
comments powered by Disqus