Accessing a Specific Element in a Tuple

后端 未结 7 2149
南笙
南笙 2020-12-11 00:17

Haskell-newbie reporting in. Question is as follows: In Haskell, we have fst and snd that return the first and the second elements of a 2-tuple. Wh

7条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-11 00:48

    Check out the tuple library on hackage. It has overloaded functions for various operations on tuples (up to a predefined size).

提交回复
热议问题