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
Conversation
Sources/ArrayExtensions.swift
Outdated
/// 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) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
Generated by 🚫 Danger |
Codecov Report
@@ 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
Continue to review full report at Codecov.
|
07df430
to
26e7dc5
Compare
There was a problem hiding this 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)
}
: fix
Checklist