steveklabnik / frappuccino

Functional Reactive Programming in Ruby.
https://github.com/steveklabnik/frappuccino
MIT License
354 stars 33 forks source link

Add lazy #map operation to Property #20

Closed seadowg closed 11 years ago

seadowg commented 11 years ago

I thought it would be nice to be able to perform a lazy map on a Property. This is basically the same as doing a #map on a Stream and then using it to create a Property but can provide a nicer abstraction.

I thought it would make more sense for it to be lazy as we don't need to apply the map function until we actually query the Property (as we don't push the changes in value anywhere).

coveralls commented 11 years ago

Coverage Status

Coverage remained the same when pulling 15b0537b4d50288ac6f4b132f34602f2e5ba53db on seadowg:prop_map into 63c5e641e5f01a406edd9d4d38b930ed5f8d04c3 on steveklabnik:master.

steveklabnik commented 11 years ago

:metal: thanks!