Hacker News new | past | comments | ask | show | jobs | submit login

The answer to your first question is yes. You can see that in the types.

  fmap :: (a -> b) -> f a -> f b
The `a` becomes a `b` (which could be a different type but not necessarily), but the `f` is the same `f`.



Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: