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

Add into a list values from an List #1836

Open
spastorclovr opened this issue Jan 22, 2025 · 0 comments
Open

Add into a list values from an List #1836

spastorclovr opened this issue Jan 22, 2025 · 0 comments

Comments

@spastorclovr
Copy link

General Question

For the life of me I cannot wrap my head around this.

I need to be able to write dynamically in this Object

o = {
    requirements: {}
}

Where requirements is populated with values coming out of List

list = [
       {"1" = {value = "one"}} 
       {"2" = {value = "two"}} 
       
}
 
The end result being

o = {
    requirements: {
          "1": {value = "one"}
          "2": {value = "two"}
    }
}

I have tried many many many things with no result :( . Any help highly appreciated.

Thx

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