Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add insertion order note to keyset documentation #1346

Open
kostmo opened this issue Jun 17, 2023 · 0 comments
Open

Add insertion order note to keyset documentation #1346

kostmo opened this issue Jun 17, 2023 · 0 comments

Comments

@kostmo
Copy link

kostmo commented Jun 17, 2023

Please complete the information below:

Where is the problem?

Keyset documentation:
https://docs.hhvm.com/hack/arrays-and-collections/vec-keyset-and-dict#keyset

What is the problem?

It should be noted that keysets preserve insertion order just like dict.
The dict documentation includes the note:

dicts are ordered according to the insertion order.

This note should be replicated for keysets, as in:

A keyset can only contain string or int values. keysets are ordered according to the insertion order.


Please don't change anything below this point.


  • Build ID: HHVM=HHVM-4.164.0:HSL=v4.108.1:2023-06-17T02:05:59+0000:1fa47f258c6b68f8ec01899aa82fd6ffa0957109
  • Page requested: /hack/arrays-and-collections/vec-keyset-and-dict
  • Page requested at: Sat, 17 Jun 2023 02:59:15 +0000
  • Controller: GuidePageController
kostmo added a commit to kostmo/user-documentation that referenced this issue Jun 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant