Genie Discord forum
![Author Avatar](https://cdn.discordapp.com/avatars/679661866166910986/f3ed85f7a3e27b92039307687c03613a.png?size=512)
Is there a way to either iterate over a zip
of two collections, or a collection and it's indices using @recur
?
Something like one of the following:
@recur("(i, letter) in zip(1:26, letters)")
@recur("(i, letter) in enumerate(letters)")
![Author Avatar](https://cdn.discordapp.com/avatars/743412727464067154/bc30abeb49653e9978c0f7c90f4486a8.png?size=512)
you can directly use an index without zipping
<div v-for="neurons,index in layer_neurons">
Layer {{index+2}} <q-slider :min="1" v-model="layer_neurons[index]" label="" :max="16" :step="1"></q-slider>
</div>
layer_neurons = [8,5]
From this demo: https://github.com/BuiltWithGenie/NNtraining
![Author Avatar](https://cdn.discordapp.com/avatars/679661866166910986/f3ed85f7a3e27b92039307687c03613a.png?size=512)
This worked! Thank you!
![Author Avatar](https://cdn.discordapp.com/avatars/743412727464067154/bc30abeb49653e9978c0f7c90f4486a8.png?size=512)
Cool! FYI, anything that goes in a string in the UI function must be valid Javascript, hence why your first attempt didn't work
![Author Avatar](https://cdn.discordapp.com/avatars/679661866166910986/f3ed85f7a3e27b92039307687c03613a.png?size=512)
Yeah, I suspected as much, but it was easiest to illustrate what I needed using Julia code. Thanks!