Skip to content

Include examples of initiation  #996

Open
@joshuazj

Description

@joshuazj

Please complete the information below:

Where is the problem?

      • eg "The section describing how widgets work" - - -

What is the problem?

Lack of initialization example. For example, I was searching to how to initialize an empty Set. It can save me 1 hour if there is one line like this:
$s = Set {}

I know there are some examples in the Array and Collection page. But why does it take so long to find that one page containing multiple examples for different purpose? People need clear guidance when they see definition, followed by examples!


Please don't change anything below this point.


  • Build ID: HHVM=HHVM-4.95.0:HSL=v4.93.0:2021-02-09T09:00:03+0000:1fa47f258c6b68f8ec01899aa82fd6ffa0957109
  • Page requested: /hack/reference/class/HH.Set/
  • Page requested at: Tue, 09 Feb 2021 17:29:46 +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