Skip to content

Access underlying Dict of DefaultDict #705

Open
@goretkin

Description

@goretkin

I think it would be useful to have a documented way to access the underlying Dict of a DefaultDict. The following seems to rely on internals:

julia> dd
DefaultDict{Any,Array{Int64,1},DataType} with 3 entries:
  0 => [3, 6, 9]
  2 => [2, 5, 8]
  1 => [1, 4, 7, 10]

julia> dd.d.d
Dict{Any,Array{Int64,1}} with 3 entries:
  0 => [3, 6, 9]
  2 => [2, 5, 8]
  1 => [1, 4, 7, 10]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Pending Clear NeedSomething we need to think about why were want to do something still.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions