Avatar
omochimetaru 7/5/2019 4:17 AM
func difference<C>(from other: C) -> CollectionDifference<Self.Element> where C : BidirectionalCollection, Self.Element == C.Element Available when Element conforms to Equatable. BidirectionalCollection.differenceは、要素をEquatableを要求するけど、Hashableのときは加速するらしい。