-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
p136 (<$) #29
Comments
看来你已经自问自答了😄 所以你的问题是? 另外 |
magic-haskell ,P136页, ($>) ::Functor f => f a -> b -> f b 这都是书上的定义呀。 |
并不是出自书上的定义,我也没有在别的地方看到有定义这样的
这两个表达式的区别你不是说得挺清楚了嘛,两个表达式的含义很不同呀:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
(<$)=fmap . const
与 (<$)=fmap const
有什么区别?
1.前者是中间有个复合函数运算符
2.后者直接把const当作f函数,将f函数提升到函子盒子级别
The text was updated successfully, but these errors were encountered: