Swifterswift: Refactor ArrayExtensions

Created on 30 Mar 2018  路  1Comment  路  Source: SwifterSwift/SwifterSwift

Some methods like sum, average can be moved from ArrayExtensions to CollectionExtensions, this will make them accessible for other Collection types as well.

discussion enhancement

Most helpful comment

Hey @omaralbeik I think some extension also can be moved to Sequence instead of Collection.
For example: count(where:) and forEachReversed() I think could be on Sequence.

>All comments

Hey @omaralbeik I think some extension also can be moved to Sequence instead of Collection.
For example: count(where:) and forEachReversed() I think could be on Sequence.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

SD10 picture SD10  路  3Comments

pawurb picture pawurb  路  3Comments

omaralbeik picture omaralbeik  路  3Comments

g001613001 picture g001613001  路  5Comments

marcocapano picture marcocapano  路  5Comments