Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce a typealias UnitMapping #4

Closed
ole opened this issue Aug 2, 2016 · 0 comments
Closed

Introduce a typealias UnitMapping #4

ole opened this issue Aug 2, 2016 · 0 comments

Comments

@ole
Copy link
Owner

ole commented Aug 2, 2016

public protocol UnitProduct {
    associatedtype Factor1: Dimension
    associatedtype Factor2: Dimension
    associatedtype Product: Dimension

    typealias UnitMapping = (Factor1, Factor2, Product)

    static func defaultUnitMapping() -> UnitMapping
    static func preferredUnitMappings() -> [UnitMapping]
}

This capability is described in SE-0092, which has been implemented a few days ago, but it is not available in Xcode 8 beta 4 yet.

@ole ole closed this as completed Sep 10, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant