Sfoglia il codice sorgente

[std] ReadOnlyArray should forward contains() and keyValueIterator()

Aleksandr Kuzmenko 5 anni fa
parent
commit
5dbdb617b0
2 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 1 0
      extra/CHANGES.txt
  2. 1 1
      std/haxe/ds/ReadOnlyArray.hx

+ 1 - 0
extra/CHANGES.txt

@@ -2,6 +2,7 @@
 
 
 	Bugfixes:
 	Bugfixes:
 
 
+	all : added `contains` and `keyValueIterator` methods to haxe.ds.ReadOnlyArray
 	macro : fixed type intersection syntax in macro reification (#9404)
 	macro : fixed type intersection syntax in macro reification (#9404)
 	lua : fixed lua code generation without `--main` compilation argument (#9489)
 	lua : fixed lua code generation without `--main` compilation argument (#9489)
 	php : added an overload signature for `session_set_cookie_params` function (#9507)
 	php : added an overload signature for `session_set_cookie_params` function (#9507)

+ 1 - 1
std/haxe/ds/ReadOnlyArray.hx

@@ -30,7 +30,7 @@ package haxe.ds;
 	Other code holding a reference to the underlying `Array` can still modify it,
 	Other code holding a reference to the underlying `Array` can still modify it,
 	and the reference can be obtained with a `cast`.
 	and the reference can be obtained with a `cast`.
 **/
 **/
-@:forward(concat, copy, filter, indexOf, iterator, join, lastIndexOf, map, slice, toString)
+@:forward(concat, copy, filter, indexOf, iterator, keyValueIterator, join, lastIndexOf, map, slice, contains, toString)
 abstract ReadOnlyArray<T>(Array<T>) from Array<T> to Iterable<T> {
 abstract ReadOnlyArray<T>(Array<T>) from Array<T> to Iterable<T> {
 	/**
 	/**
 		The length of `this` Array.
 		The length of `this` Array.