Skip to content

definition(String, method) #265s #38

@KristofferC

Description

@KristofferC
julia> f(x) = print("hello")
f (generic function with 1 method)

julia> m = @which f(2)
f(x) in Main at REPL[3]:1

julia> CodeTracking.definition(String, m)
("f(x) = print(\"hello\")", 1)

julia> f(x) = print("world")
f (generic function with 1 method)

julia> m = @which f(2)
f(x) in Main at REPL[6]:1

julia> CodeTracking.definition(String, m)
("f(x) = print(\"hello\")", 1)

julia> f(2)
world

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