Skip to content

Instantly share code, notes, and snippets.

@andrevidela
Created April 14, 2017 12:35
Show Gist options
  • Select an option

  • Save andrevidela/010daeebd10b44b28728adea031618fa to your computer and use it in GitHub Desktop.

Select an option

Save andrevidela/010daeebd10b44b28728adea031618fa to your computer and use it in GitHub Desktop.
infix operator •
public func • <A, B, C>(f : @escaping (B) -> C, g : @escaping (A) -> B) -> (A) -> C {
return { f(g($0)) }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment