How to preserve selected index in a list? #474
-
Let's say I have a list that I am replacing its contents based on some external event. Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Answered by
jtdaugherty
Jun 23, 2023
Replies: 1 comment 1 reply
-
You can use listReplace to do that if get the selected index in advance and then pass it as the |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
refaelsh
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can use listReplace to do that if get the selected index in advance and then pass it as the
Maybe Int
argument.