@@ 302-309 (lines=8) @@ | ||
299 | ||
300 | $pair = $this->pairs->get($index); |
|
301 | ||
302 | if ($map->contains($newKey)){ |
|
303 | $map = $map->put( |
|
304 | $newKey, |
|
305 | $map->get($newKey)->add($pair) |
|
306 | ); |
|
307 | } else { |
|
308 | $map = $map->put($newKey, new Sequence($pair)); |
|
309 | } |
|
310 | } |
|
311 | ||
312 | return $map; |
@@ 232-239 (lines=8) @@ | ||
229 | ); |
|
230 | } |
|
231 | ||
232 | if ($map->contains($key)){ |
|
233 | $map = $map->put( |
|
234 | $key, |
|
235 | $map->get($key)->add($value) |
|
236 | ); |
|
237 | } else { |
|
238 | $map = $map->put($key, new Sequence($value)); |
|
239 | } |
|
240 | } |
|
241 | ||
242 | return $map; |