Skip to content

Should get work for tuples? #40809

Closed
Closed
@mcabbott

Description

This seems surprising:

julia> get([1,2,3], 4, 5)
5

julia> get((1,2,3), 4, 5)
ERROR: MethodError: no method matching get(::Tuple{Int64, Int64, Int64}, ::Int64, ::Int64)

julia> get((a=1,b=2,c=3), :d, 5)
5

julia> get((a=1,b=2,c=3), 4, 5)
5

Activity

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

Metadata

Assignees

No one assigned

    Labels

    featureIndicates new feature / enhancement requestsgood first issueIndicates a good issue for first-time contributors to Julia

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions