hhvm / user-documentation

Documentation for those that use HHVM and write Hack code.

Home Page:http://docs.hhvm.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dict\merge ordering guarnatee

adeftu opened this issue · comments

Please complete the information below:

What is the problem?

A dict is an ordered key-value data structure. What ordering guarantees are provided by Dict\merge:

  • First all keys in $first, then all keys in $rest in order? Something else?
  • Is it stable: relative order within each KeyedTraversable is preserved?

Please be explicit in the documentation about ordering guarantees: either there is no ordering guarantee or, if there is any, which one is it?


Please don't change anything below this point.


  • Build ID: HHVM=HHVM-4.147.0:HSL=v4.108.1:2022-03-09T19:38:57+0000:1fa47f258c6b68f8ec01899aa82fd6ffa0957109
  • Page requested: /hsl/reference/function/HH.Lib.Dict.merge/
  • Page requested at: Mon, 14 Mar 2022 14:30:55 +0000
  • Controller: APIClassPageController