We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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 } }
The text was updated successfully, but these errors were encountered:
That is much cleaner. Submit this as a pull request, please.
Sorry, something went wrong.
@CodaFi Done 👍 , See #44
No branches or pull requests
Original:
What do you think about updating it so that it uses <^>?
New:
The text was updated successfully, but these errors were encountered: