Skip to content

Dict\merge ordering guarnatee #1175

Open
@adeftu

Description

@adeftu

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions