Closed YayeIrene closed 7 years ago
Hello, I got an answer on stackoverflow: map(x->x[2], S)
where S is the Signal object. This will give you the second element in a way that will update automatically when S changes.
Glad you got the answer. Sorry for not responding earlier.
Hello, I am having trouble working with working with signal of arrays. I have written a code that takes inputs from the UI using the following commands:
I then use the command map to run a julia function:
the function return an array so typeof(output) is: Reactive.Signal{Array{Float64,1}}
If I print output I can see the different values (on the same row). But I am not able to access the elements of the array. How can I access those values?
Thank you!