A reverse function with Monoid type class in haskell

后端 未结 0 757
借酒劲吻你
借酒劲吻你 2021-01-21 17:39

I try to write a list-corresponding reverse function under Monoid typeclass like this:

reverse :: [a] -> [a]
reverse ls = foldl ( \\b a -         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题