I hereby claim:
- I am bppr on github.
- I am bppr (https://keybase.io/bppr) on keybase.
- I have a public key ASASvSupq_C9i252FuT4PUuYKNTNu_XJdqTLdGWbcYNypQo
To claim this, I am signing this object:
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? { |
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 |
I hereby claim:
To claim this, I am signing this object:
protocol Features {} | |
protocol ProFeatures: Features {} | |
protocol Account { | |
associatedtype FeatureType | |
var features: FeatureType { get set } | |
} | |
class ProAccount<T: Features>: Account { | |
typealias FeatureType = T |