- Badlands, SD
- Yellowstone, WY
- Grand Teton, WY
- Cuyahoga Valley, OH
- Great Smoky Mountain, TN/NC
- Blue Ridge Parkway, NC
- Black Hills, SD
protocol Features {} | |
protocol ProFeatures: Features {} | |
protocol Account { | |
associatedtype FeatureType | |
var features: FeatureType { get set } | |
} | |
class ProAccount<T: Features>: Account { | |
typealias FeatureType = T |
I hereby claim:
To claim this, I am signing this object:
fileprivate func gcd(_ a: Int, _ b: Int) -> Int { | |
return b == 0 ? a : gcd(b, a % b) | |
} | |
fileprivate func abs(_ n: Int) -> Int { | |
return n > 0 ? n : -n | |
} | |
struct Ratio { | |
let numerator: Int |
extension String { | |
var length: Int { get { return characters.count } } | |
var first: Character { get { return self[self.startIndex] }} | |
var last: Character { get { return self[self.endIndex.predecessor()] }} | |
func contains(fragment: String) -> Bool { | |
return self.indexOf(fragment) != nil | |
} | |
func indexOf(fragment: String) -> String.Index? { |