Skip to content

Dispatching variadic arguments to dependencies with splats #558

@casey

Description

@casey

It should be possible, when a variadic parameter receives multiple arguments, to call a dependency for each of those arguments:

This could look like:

foo *args: (bar *args)
@bar arg:
  echo bar: {{arg}}

Which would have the effect of, for each value in args, call bar with that value:

$ just a b c d
bar: a
bar: b
bar: c
bar: d

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions