Rewrite curried flip so that labels are not necessary

Thanks. I was wondering about coding guidelines. 

I'm out now. I'll fix it later. 


> On Nov 8, 2014, at 6:37 PM, Robert Widmann <notifications@github.com> wrote:
> 
> In swiftz_core/swiftz_core/Functions.swift:
> 
> > @@ -49,8 +49,12 @@ public func flip<A, B, C>(f: (A, B) -> C)(b: B, a: A) -> C {
> >  
> >  /// Flip a function's arguments and return a curried function that takes
> >  /// the arguments in flipped order.
> > -public func flip<A, B, C>(f: A -> B -> C)(b: B)(a: A) -> C {
> > -  return f(a)(b)
> > +public func flip<A, B, C>(f: A -> B -> C) -> B -> A -> C {
> Single line please:
> 
> public func flip<A, B, C>(f : (A, B) -> C) -> (B, A) -> C {
>     return { t in f(snd(t), fst(t)) }
> }
> —
> Reply to this email directly or view it on GitHub.
>