📜  你能在haskell代码示例中部分定义一个元组吗

📅  最后修改于: 2022-03-11 14:53:35.029000             🧑  作者: Mango

代码示例1
-- as an application of partial application of tuples, refer to the ((,) True)
-- the funciton type signature is ((,) True) :: b -> (Bool, b) and hence is a
-- valid use in map for example:
map ((,) True) [1,2,3] => [(True,1),(True,2),(True,3)]