HeartRateLearning / HRLAlgorithms

(DEPRECATED) Wrapper around LearnKit
MIT License
1 stars 1 forks source link

Generated interface for HRLMatrixDataSource is not satisfactory #3

Open indisoluble opened 7 years ago

indisoluble commented 7 years ago

ObjC interface for HRLMatrixDataSource:

@protocol HRLMatrixDataSource <NSObject>
...
- (HRLValue)valueAtRow:(HRLSize)row column:(HRLSize)column;
- (HRLClass)classForRow:(HRLSize)row;
@end

Looks like this in Swift:

public protocol HRLMatrixDataSource : NSObjectProtocol {
...
    public func value(atRow row: HRLSize, column: HRLSize) -> HRLValue
    public func `class`(forRow row: HRLSize) -> UInt
}