How to initialize a 2D array full of zeros in swift?
Just use the array initializer (repeating: , count: ) as follows: var rows = 3 var column = 5 var arrayOfArrayInitialization = [[Int]](repeating: [Int](repeating: 0, count: column), count: rows) That’s all my people, I hope you liked reading this article as much as I enjoyed writing it. If you want to support this blog you can […]
How to write minimum on URL declarations in Swift? Hint: ExpressibleByStringLiteral
Hey guys, Leo here. Today I learned with this tweet: twitter.com/aslanyanhaik/status/12529058314.. This is a great way to abstract not only the unwrapping from your code, but it’s way more pleasant to read. And If you are curious, there are ExpressibleByStringInterpolation too if you need that type of control. That’s all my people, I hope you […]