Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dispatching variadic arguments to dependencies with splats #558

Open
casey opened this issue Dec 7, 2019 · 0 comments
Open

Dispatching variadic arguments to dependencies with splats #558

casey opened this issue Dec 7, 2019 · 0 comments

Comments

@casey
Copy link
Owner

casey commented Dec 7, 2019

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
@casey casey added this to the eventually milestone Jan 12, 2020
@casey casey removed this from the eventually milestone Jul 2, 2020
@casey casey changed the title Dependency expansion Dispatching variadic arguments to dependencies with splats Jun 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant