Skip to content

Dictionary as a new Collection type #17

@Colho

Description

@Colho

Dictionary as a new Collection type would be beneficial, as dictionary is a widely used data structure. Basic idea is to have <Key, Value> pair, where a key is always associated with a value.

Dictionary characteristics:

  • Key and value pairs can be added to the dictionary
  • Key and value pairs can be removed from the dictionary
  • Values can be fetched from the dictionary with a key
  • Every key in dictionary must be unique
  • Keys can be tested are they already in the dictionary

Some remarks:

  • Using hash table for fast value lookup?
  • Possibility to enumerate all the key and value pairs? (for looping through the dict?)
  • Equality comparer for generic objects?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions