@@ -5119,20 +5119,9 @@ public static class ImHashMap
51195119 [ MethodImpl ( ( MethodImplOptions ) 256 ) ]
51205120 public static ImHashMap < K , V > Entry < K , V > ( K key , V value ) => new ImHashMapEntry < K , V > ( key . GetHashCode ( ) , key , value ) ;
51215121
5122- /// <summary>Creates the map out of the entries in the final shape without wasting the memory</summary>
5123- [ MethodImpl ( ( MethodImplOptions ) 256 ) ]
5124- public static ImHashMap < K , V > Create < K , V > ( ImHashMapEntry < K , V > e0 , ImHashMapEntry < K , V > e1 ) =>
5125- e0 . Hash < e1 . Hash ? new ImHashMap < K , V > . Leaf2 ( e0 , e1 ) : new ImHashMap < K , V > . Leaf2 ( e0 , e1 ) ;
5126-
5127- /// <summary>Creates the map out of the entries in the final shape without wasting the memory</summary>
5128- [ MethodImpl ( ( MethodImplOptions ) 256 ) ]
5129- public static ImHashMap < K , V > Create < K , V > ( ImHashMapEntry < K , V > e0 , ImHashMapEntry < K , V > e1 , ImHashMapEntry < K , V > e2 ) =>
5130- new ImHashMap < K , V > . Leaf2Plus1 ( e2 , ( ImHashMap < K , V > . Leaf2 ) Create ( e0 , e1 ) ) ;
5131-
5132- /// <summary>Creates the map out of the entries in the final shape without wasting the memory</summary>
5122+ /// <summary>Creates the entry to help with inference</summary>
51335123 [ MethodImpl ( ( MethodImplOptions ) 256 ) ]
5134- public static ImHashMap < K , V > Create < K , V > ( ImHashMapEntry < K , V > e0 , ImHashMapEntry < K , V > e1 , ImHashMapEntry < K , V > e2 , ImHashMapEntry < K , V > e3 ) =>
5135- new ImHashMap < K , V > . Leaf2Plus1Plus1 ( e3 , new ImHashMap < K , V > . Leaf2Plus1 ( e2 , ( ImHashMap < K , V > . Leaf2 ) Create ( e0 , e1 ) ) ) ;
5124+ public static ImHashMap < K , V > Entry < K , V > ( int hash , K key , V value ) => new ImHashMapEntry < K , V > ( hash , key , value ) ;
51365125
51375126 private sealed class GoRightInBranch3 < K , V >
51385127 {
@@ -6167,17 +6156,9 @@ public static ImHashMap<K, V> Remove<K, V>(this ImHashMap<K, V> map, K key) =>
61676156 /// <summary>The map methods</summary>
61686157 public static class ImMap
61696158 {
6170- /// <summary>Creates the map out of the entries in the final shape without wasting the memory</summary>
6171- public static ImMap < V > Create < V > ( ImMapEntry < V > e0 , ImMapEntry < V > e1 ) =>
6172- e0 . Hash < e1 . Hash ? new ImMap < V > . Leaf2 ( e0 , e1 ) : new ImMap < V > . Leaf2 ( e0 , e1 ) ;
6173-
6174- /// <summary>Creates the map out of the entries in the final shape without wasting the memory</summary>
6175- public static ImMap < V > Create < V > ( ImMapEntry < V > e0 , ImMapEntry < V > e1 , ImMapEntry < V > e2 ) =>
6176- new ImMap < V > . Leaf2Plus1 ( e2 , ( ImMap < V > . Leaf2 ) Create ( e0 , e1 ) ) ;
6177-
6178- /// <summary>Creates the map out of the entries in the final shape without wasting the memory</summary>
6179- public static ImMap < V > Create < V > ( ImMapEntry < V > e0 , ImMapEntry < V > e1 , ImMapEntry < V > e2 , ImMapEntry < V > e3 ) =>
6180- new ImMap < V > . Leaf2Plus1Plus1 ( e3 , new ImMap < V > . Leaf2Plus1 ( e2 , ( ImMap < V > . Leaf2 ) Create ( e0 , e1 ) ) ) ;
6159+ /// <summary>Creates the entry to help with inference</summary>
6160+ [ MethodImpl ( ( MethodImplOptions ) 256 ) ]
6161+ public static ImMap < V > Entry < V > ( int hash , V value ) => new ImMapEntry < V > ( hash , value ) ;
61816162
61826163 private sealed class GoRightInBranch3 < V >
61836164 {
0 commit comments