Skip to content
This repository has been archived by the owner on May 17, 2024. It is now read-only.

Add from supporting array of keys with custom transformation #131

Merged
merged 1 commit into from
Dec 4, 2017

Conversation

brodney
Copy link
Contributor

@brodney brodney commented Dec 1, 2017

No description provided.

Copy link
Contributor

@keith keith left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small comment

///
/// - returns: The value of type T for the given field
public func from<T: Convertible>(_ fields: [String], transformation: (Any) throws -> T)
throws -> T where T == T.ConvertedType {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{ on next line

@keith keith merged commit 67ee576 into lyft:master Dec 4, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants