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
extension Optional { | |
// Will return the value of optional if it is not nil and if the function `condition` evaluates to true. | |
// Otherwise, returns nil | |
func filter(condition: T -> Bool) -> T? { | |
if let x = self { | |
if condition(x) { | |
return x | |
} | |
} | |
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
infix operator >>>= { | |
associativity right | |
precedence 90 | |
assignment | |
} | |
infix operator <<<= { | |
associativity right | |
precedence 90 | |
assignment |
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
We collect no personal data of any kind. | |
We do not record or store keystrokes or any other usage data. | |
We collect no data. | |
Simply enjoy the use of the AlphaBoard Keyboard, knowing that your privacy is secure. |