Skip to content

Destructure named list #60

@JosiahParry

Description

@JosiahParry

Say I have a named list like so:

env_vars <- list(
  "api_key" = "fbivyb137294hgwv",
  "hello" = "world",
  "current_user" = "josiah@parry.com"
)

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions