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
infix operator • { associativity right precedence 140 } | |
func • <T, U, V>(g: U -> V, f: T -> U) -> T -> V { | |
return { t in | |
return g(f(t)) | |
} | |
} | |
func composed_setResizedImage(withURL url: NSURL) { | |
let fetchResizedUrl = fetchData • requestForImageUrl • photonize(forSize: frame.size) | |
fetchResizedUrl(url)({ data in | |
unwrapOptional( | |
imageFromResponseData(data), | |
then: applyImageInMainQueue(to: self) | |
) | |
}) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment