Skip to content

get by index #93

@ExpandingMan

Description

@ExpandingMan

I not infrequently want to get itens from an OrderedDict by their index. There doesn't seem to be a public-facing API for this, I usually use dict.keys. As this is unlikely to break I suggest we add a function. Note that keys(dict)[idx] does not work because keys returns a non-indexable KeySet. It might be nice to create an indexable KeySet object, though that seems like more effort than this problem calls for.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions