Skip to content

Is it possible to "specialize" an existing procedure/template? #1

@Varriount

Description

@Varriount

Say I have an existing procedure like this:

proc foo(a, b, c, d: int) =
  echo a + b + c + d

Is it possible to use spread to create a version of this procedure (with the same name) that takes a body of arguments?

foo:
  a = 1
  b = 2
  c = 3
  d = 4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions