Is there a way to pass an operator with unknown type in haskell?

后端 未结 0 685
别那么骄傲
别那么骄傲 2020-12-23 18:45

I have a function f op = (op 1 2, op 1.0 2.0), which require to work like these:

f (+)
(3, 3.0)

But without declaring type of

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