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

Destructure named list #60

Open
JosiahParry opened this issue Aug 18, 2024 · 0 comments
Open

Destructure named list #60

JosiahParry opened this issue Aug 18, 2024 · 0 comments

Comments

@JosiahParry
Copy link

Say I have a named list like so:

env_vars <- list(
  "api_key" = "fbivyb137294hgwv",
  "hello" = "world",
  "current_user" = "[email protected]"
)

In an ideal world, we would be able to iterate through named elements in a for loop like so:

for ((key, value) in env_vars) {
 ... 
}

but we don't like in one. I think this may be a place that zeallot may be able to help though I cannot imagine exactly the syntax.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant