> For example, this Standard Library function:
> 
>     public func + <
>         C : RangeReplaceableCollectionType,
>         S : SequenceType
>         where S.Generator.Element == C.Generator.Element
>     > (lhs: C, rhs: S) -> C
> 
> would become:
> 
>     public func + (lhs: C, rhs: S) -> C where <
>         C : RangeReplaceableCollectionType
>         C : SequenceType
>         S.Generator.Element == C.Generator.Element
>     >
> 

As for structs, this Standard Library struct:

        public struct FlattenBidirectionalCollection <Base : CollectionType 
where Base.Generator.Element : CollectionType, Base.Index : 
BidirectionalIndexType, Base.Generator.Element.Index : BidirectionalIndexType> 
: CollectionType { … }

… could become:

        public struct FlattenBidirectionalCollection<Base> : CollectionType 
where <
                 Base : CollectionType
                 Base.Generator.Element : CollectionType
                 Base.Index : BidirectionalIndexType
                 Base.Generator.Element.Index : BidirectionalIndexType
        > { … }

milos
_______________________________________________
swift-evolution mailing list
[email protected]
https://lists.swift.org/mailman/listinfo/swift-evolution

Reply via email to