Skip to content
This repository has been archived by the owner on Dec 5, 2019. It is now read-only.

Converted to Swift 2 and updated dependencies #13

Open
wants to merge 14 commits into
base: master
Choose a base branch
from
Open

Converted to Swift 2 and updated dependencies #13

wants to merge 14 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Nov 16, 2015

No description provided.

@ghost ghost changed the title Convert to Swift 2 and update dependencies Converted to Swift 2 and updated dependencies Nov 16, 2015

private func flatMap<T, U>(x: [T], f: T -> [U]) -> [U] {
return reduce(lazy(x).map(f), [], +)
private func <|> <C: CollectionType, T>(parser: Parser<C, T>.Function, @autoclosure(escaping) right: () -> T) -> Parser<C, T>.Function {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@robrix Do you think the ?? operator is more appropriate for this function?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant