oetzi/echo — Issue #21: Make `sample` cool
Author: oetzi
Created: 2011-10-19 11:58:50+00:00
State: open
Labels: behaviours, spec

Sample is rubbish. It would be way better if it took in some event (of any type) and then returned an event that occurred whenever the passed in event occurs. The new event would be of type T and its value when it occurred would be the value of the Behaviour in that point in time. The new signature would be:

def sample[N](event : Event[N]) : Event[T]

Need to change the spec, tests and then implement.