OK, there is a problem with this:
the new slider that gets created every time we update u doesn’t update l. l
gets updated only after we try to change its subscribed slider, not before.
This is problematic because I lifted l and u and if they’re overlapping
then I get errors.
I’ll get back to
Hi Yakir,
you're right l will only update in response to user action.
how about using l′ = lift(min, u, l) instead of l?
On Wed, Nov 4, 2015 at 8:53 AM, Yakir Gagnon <12.ya...@gmail.com> wrote:
> OK, there is a problem with this:
> the new slider that gets created every time we update u doesn’
Good one, thanks Shashi!
I adjusted it a bit to make sure that the lower bound is always one less
than the upper one. This works perfectly (the last two lines in the vbox
are just to display and show that u and ll are correct):
u = Input(100)
l = Input(0)
mymin(u,l) = u > l ? l : u - 1
ll = lift(m