Closed mpurland closed 9 years ago
Original:
public func <*> <A, B>(f : (A -> B)?, a : A?) -> B? { return f.flatMap({ a.map($0) }) }
What do you think about updating it so that it uses <^>?
New:
public func <*> <A, B>(f : (A -> B)?, a : A?) -> B? { return f.flatMap { $0 <^> a } }
That is much cleaner. Submit this as a pull request, please.
@CodaFi Done :+1: , See #44
Original:
What do you think about updating it so that it uses <^>?
New: