Skip to content

Function to generate a call from the def Dict  #2

Description

@oxinabox

Given the dict returned by splitdef
it would be useful to have a function the generate a Expr(:call,... to the function that is defined.

e.g.

julia> k = splitdef(:(f(x::Int) = 2x))
Dict{Symbol,Any} with 4 entries:
  :args => Any[:(x::Int)]
  :body => quote
  :name => :f
  :head => :(=)

julia> call_expr(k) == :(f(x))

This is basically a much simpler version of combinedef

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

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions