     expectPropertyEvents(
       ->
         s = new Bacon.Bus()
-        p = s.toProperty(1).map(times(2))
+        p = s.toProperty(1).map(times, 2)
         soon ->
           s.push 2
           s.error()

lessThan = (limit) -> 
  (x) -> x < limit

times = (factor) ->
  (x) -> x * factor

add = (x, y) -> x + y


    expectStreamEvents(
      ->
        src = series(2, [1, 2])
        src.toProperty().sampledBy(src.map(times, 2))
      [1, 2])

describe "Property.sample", -> 
