You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
forEachEnumerated(_:) -> Sequence get(at:) -> BidirectionalCollection, can be Collection, but I don't think it's good enough, bidirectional is better containsType(of:) -> Collection insertFirst(_:) -> Array, This fits array mostly random(_:) -> Collection, think of Dictionary return tuple reverseIndex(_:) -> Collection, stick with where Self.Index == Int ?
The text was updated successfully, but these errors were encountered:
piv199
changed the title
Move some array extensions to Collection/Sequence protocol
Move some/all array extensions to Collection/Sequence/Indexable protocols
Sep 27, 2016
.reserved (need to think what where to move)
forEachEnumerated(_:)
->Sequence
get(at:)
->BidirectionalCollection
, can be Collection, but I don't think it's good enough, bidirectional is bettercontainsType(of:)
->Collection
insertFirst(_:)
->Array
, This fits array mostlyrandom(_:)
->Collection
, think of Dictionary return tuplereverseIndex(_:)
->Collection
, stick withwhere Self.Index == Int
?The text was updated successfully, but these errors were encountered: