Tagged Questions

An array in swift programming stores multiple values of the same type in an ordered list. The same value can appear in an array multiple times at different positions.

learn more… | top users | synonyms

0
votes
0answers
18 views

How to read a matrix of bytes from an external source in Swift

I have an external source from which I would like to read a bidimensional array of bytes. The code I have come up with to do it is the following: func getMyArray(externalSource: ExternalSource) -> ...
-2
votes
1answer
60 views

Why does (“0”+“1”).toInt()! return 1 as an Int, rather than 0

Was playing around with the reduce function on collections in Swift. //Reduce method should return an Int with the value 3141. let digits = ["3", "1", "4", "1"] .reduce(0) { (total:Int, ...
0
votes
2answers
57 views

How do I access an Array stored in a Dictionary in Swift?

This is how I created my Dictionary with the Array: @IBAction func didTapSaveButton(sender: UIButton) { var hooObject = Dictionary<String, [String]>() hooObject["\(dayLabel.text)"] = ...