This file contains 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
var cities = [ | |
{ | |
name: 'berlin', | |
latitude: '52.5167', | |
longitude: '13.3833', | |
}, | |
{ | |
name: 'athena', | |
latitude: '37.9667', | |
longitude: '23.7167', |
This file contains 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
public struct RandomNumberGenerator: SequenceType { | |
let range: Range<Int> | |
let count: Int | |
public init(range: Range<Int>, count: Int) { | |
self.range = range | |
self.count = count | |
} | |
public func generate() -> GeneratorOf<Int> { |
NewerOlder