Skip to content

Instantly share code, notes, and snippets.

@sjehutch
Created October 24, 2017 14:50
Show Gist options
  • Save sjehutch/dc49c697357bd4160331cf89ed5cc308 to your computer and use it in GitHub Desktop.
Save sjehutch/dc49c697357bd4160331cf89ed5cc308 to your computer and use it in GitHub Desktop.
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