Created
October 4, 2015 01:40
-
-
Save toshi0383/2cb0c3b1adbbc75d293b to your computer and use it in GitHub Desktop.
SwiftBond。短いは正義。まあ正直読みやすくはない。ちなみにreduceのパラメータ省略して$0, $1 とするとSegmentation Fault 11。 #CodePiece
This file contains hidden or 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
| reduce(username.dynText, dB: password.dynText, dC: passwordVerification.dynText) | |
| { user, pass, v in | |
| return [user, pass, v].reduce(true) | |
| {(v, e) in | |
| return !v ? false : e.characters.count > 0 | |
| } | |
| } ->> button.dynEnabled |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment