Created
October 24, 2017 14:50
-
-
Save sjehutch/dc49c697357bd4160331cf89ed5cc308 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
var basic_premiuma = [ | |
[10000, 10000, 238], | |
[10001, 10500, 242], | |
[10501, 11000, 244], | |
[11001, 11500, 248] | |
] | |
let start = 10000 | |
let end = 10000 | |
for (index, value) in basic_premiuma.enumerated() { | |
print("Item \(index + 1): \(value[0]) \(value[1])") | |
} | |
//Can you show me a function where i can pass in 10000 , 10000 and get the value 238 OR | |
10001 , 10500 and get the valie 242 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment