joinE or dynamic collections

16 views
Skip to first unread message

Matthew Hayden

unread,
Jan 2, 2012, 10:12:04 AM1/2/12
to fla...@googlegroups.com
Hi guys,

I was looking into making simple games with flapjax and I was looking for something with joinE type semantics. I've seen FRP implementations use either this or dynamic collection combinators to the same sort of effect.

For example, say I want to create a new ball, once every second, that moves across the screen to the other side and disappears. Obviously the balls have the same behaviour but it is offset by the time they are created.

Any suggests how i might achieve this?

Matthew

Arjun Guha

unread,
Jan 6, 2012, 3:22:55 AM1/6/12
to fla...@googlegroups.com
Hi Matt,

I'm not certain what you mean by joinE. Are you thinking of Haskell's monadic join?

Prelude Control.Monad> :t join
join :: Monad m => m (m a) -> m a

We call this switchE in Flapjax.

Arjun
Reply all
Reply to author
Forward
0 new messages