For a list of pairs, how to check if there exists an element such that the domain is the same but the range is different in Haskell?

后端 未结 0 1210
一向
一向 2020-12-12 07:26

I have a list of pairs like this:

[(1,2),(2,3)]

I want to check that for all elements that agree on the first element, they also agr

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