@@ -27,10 +27,10 @@ import DiffableTextKit
2727 //=------------------------------------------------------------------------=
2828
2929 @inlinable init ( _ local: Components ) {
30- Self . reduce ( into : & self . map , from: . ascii, to: local, all: \. digits, as: { $0 } )
31- Self . reduce ( into : & self . map , from: . ascii, to: local, all: \. separators, as: { _ in . fraction } )
32- Self . reduce ( into : & self . map , from: local, to: local, all: \. separators, as: { _ in . fraction } )
33- Self . reduce ( into : & self . map , from: . ascii, to: local, all: \. signs, as: { $0 } )
30+ self . insert ( from: . ascii, to: local, all: \. digits, as: { $0 } )
31+ self . insert ( from: . ascii, to: local, all: \. separators, as: { _ in . fraction } )
32+ self . insert ( from: local, to: local, all: \. separators, as: { _ in . fraction } )
33+ self . insert ( from: . ascii, to: local, all: \. signs, as: { $0 } )
3434 }
3535
3636 //=------------------------------------------------------------------------=
@@ -58,7 +58,7 @@ import DiffableTextKit
5858 // MARK: Helpers
5959 //=------------------------------------------------------------------------=
6060
61- @inlinable static func reduce < T> ( into map : inout Map ,
61+ @inlinable mutating func insert < T> (
6262 from source: Components , to destination: Components ,
6363 all elements: ( Components ) -> Links < T > , as key: ( T ) -> T ) {
6464 //=--------------------------------------=
0 commit comments