mostly-adequate-guide icon indicating copy to clipboard operation
mostly-adequate-guide copied to clipboard

get confused for functor of IO

Open lemondreamtobe opened this issue 4 years ago • 0 comments

Document Delivery ` // io_window_ :: IO Window var io_window = new IO(function(){ return window; });

io_window.map(function(win){ return win.innerWidth }); // IO(1430) ` i think the right Notes is IO(() => 1430). easy to understand because compose return a function not a value.

lemondreamtobe avatar Feb 22 '21 01:02 lemondreamtobe