Skip to content

Documentation for Pair class is much more confusing than it needs to be #297

Open
@ypisetsky

Description

@ypisetsky

Please complete the information below:

Where is the problem?

The documentation for the Pair class is very confusing.

What is the problem?

The Pair class is a tuple with two elements. That it happens to implement collection interfaces shouldn't detract from that. Saying that it's really an ImmVector while also saying that it supports $x[] syntax for appending is just confusing. Also it's probably a good idea to document the functions that return the same values (i.e. firstKey() should always return 0 for a Pair) to help make it fit together.


Please don't change anything below this point.


  • Build ID: 2016-03-25T19:44:16+0000:59945858b91b58253f39c91d5ff11f685e228917:ded7f690201f02c37531b00bb6a6fc0091e9945e
  • Page requested: /hack/reference/class/HH.Pair/
  • Page requested at: Fri, 25 Mar 2016 20:39:40 +0000
  • Controller: APIGenericPageController

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