Skip to content
New issue

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

<Description> : Removing for each since its already in the std library. #389

Merged
merged 1 commit into from Feb 20, 2017

Conversation

Khalian
Copy link
Collaborator

@Khalian Khalian commented Feb 19, 2017

: fix

Checklist

  • New Extension
  • New Test
  • Changed more than one extension, but all changes are related
  • Trivial change (doesn't require changelog)

/// EZSE: Creates an array with values generated by running each value of self
/// through the mapFunction and discarding nil return values.
@available(*, deprecated: 1.6, renamed: "flatMap(_:)")
public func mapFilter<V>(mapFunction map: (Element) -> (V)?) -> [V] {
return flatMap { map($0) }
}

/// EZSE: Iterates on each element of the array with its index. (Index, Element)
/// EZSE: Iterates on each element of the array with its index. (Index, Eforlement)
Copy link
Collaborator

Choose a reason for hiding this comment

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

typo

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed.

@EZSwiftExtensionsBot
Copy link

EZSwiftExtensionsBot commented Feb 19, 2017

2 Messages
📖 Executed 180 tests, with 0 failures (0 unexpected) in 4.926 (5.171) seconds
📖 Executed 166 tests, with 0 failures (0 unexpected) in 4.021 (4.269) seconds

Generated by 🚫 Danger

@codecov-io
Copy link

codecov-io commented Feb 19, 2017

Codecov Report

Merging #389 into master will increase coverage by 0.03%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #389      +/-   ##
==========================================
+ Coverage   39.42%   39.45%   +0.03%     
==========================================
  Files          47       47              
  Lines        2174     2172       -2     
==========================================
  Hits          857      857              
+ Misses       1317     1315       -2
Impacted Files Coverage Δ
Sources/ArrayExtensions.swift 79.68% <ø> (+1.22%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update fd7c88c...26e7dc5. Read the comment docs.

@Khalian Khalian merged commit 928d825 into master Feb 20, 2017
@Khalian Khalian deleted the removeforeach branch February 20, 2017 03:11
Copy link

@DanielAsher DanielAsher left a comment

Choose a reason for hiding this comment

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

hi - it looks like you will need to remove the following extension method for this to avoid name collision with the standard library:

    @available(*, deprecated: 1.7, renamed: "forEachEnumerated(_:)")
    public func forEach(_ call: @escaping (Int, Element) -> Void) {
        forEachEnumerated(call)
    }

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

Successfully merging this pull request may close these issues.

None yet

5 participants