Re:The unreasonable effectiveness of declarative programming
by reuben364 on Tuesday May 19, 2020 @06:24AM
(#23233289)
Thanks. I should have just clarified that I wanted to communicate the idea. I didn't expect to get it right first try.
Maybe I'll try and make a small library of it if there isn't already. I've never posted something on Hackage.
Re:The unreasonable effectiveness of declarative programming
by reuben364 on Tuesday May 19, 2020 @06:41AM
(#23233391)
Replying to your edit:
As I was writing it my headspace was that the duration was for seq to know when to switch. I wasn't really thinking about stopping the animation too.
(I also notices that my seq is wrong. The subsequent animation should start at the beginning, so it should be `g (t - df)`, not `g t`
I believe you are correct. Your implementation is more at the heart of what I wanted to show. . The main point I wanted to get across was the interface itself.
typo here:
s/Maybe/Just/and `par` should be
---i'm not sure about `par` - if my understanding of Anim is right, it'll take the shorter animation over its specified duration. what if it was something like:
might be less elegant but i'd expect the combinator to respect an animation's duration.or is that not what the duration represents? i.e. is this correct: