Created
June 8, 2017 16:07
-
-
Save ennioma/430ddb9dfff863f8156c172ad3f4b5ad to your computer and use it in GitHub Desktop.
Lens definition
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public struct Lens<Container, View> { | |
public let get: (Container) -> View | |
public let set: (Container, View) -> Container | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment