[swift-evolution] Low efficiency multidimensional array problem
Hbucius Smith
hbucius at gmail.com
Wed Apr 19 00:57:09 CDT 2017
Hello Swift community,
When I used multidimensional array in swift, I found it is very low
efficiency.
I used in the following way :
* var array = Array.init(repeating: Array.init(repeating: 0, count: 5),
count: 5)*
* array[0][0] = 0*
I have read some posts in stack overflow. It suggests using one dimension
to fake multidimensional array. I think it is too ugly. DO we have better
choice for this ?
*best wishes for you *
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20170419/7f9e4184/attachment.html>
More information about the swift-evolution
mailing list