Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> They also need to preserve composition.

> fmap (f . g) == fmap f . fmap g

Can you give an example where that doesn't follow from `map identity f == f`? Assuming of course `f` .. is what I think is called 'pure'? i.e. is deterministic on its input arguments.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: