how to get a specific item of a list

I made https://perchance.org/tkq1pllaqq#edit to show what I tried

2 points · 2 comments · view on lemmy.world

2 Comments

VioneT@lemmy.world · 2 pts · 3y (1 reply)

Hi, I would first select all items from the list using .selectAll and since it returns an array, you can index it like so items.selectAll[it-1]. It has a minus 1 since the indexing starts at 0 for the first element and since it is from 1-6 but indexing is only from 0-5.

thargas@lemmy.world · 2 pts · 3y

that's got it! thanks muchly