我这里有一个功能
(map (\ (a, b) -> dir a b) $ routes
whereroutes
是一个元组列表,它包含
routes = [...
("graph-fb", seeOther redirectUrlGraphEmail $ toResponse ""),
("post-fb", seeOther redirectUrlGraphPost $ toResponse ""),
...]
这里是一个问题:当我调用这个函数在每个元组上应用 dir 时,哪个函数将像第一个那样返回b
,dir a b
函数seeOther redirectUrlGraphEmail
还是seeOther redirectUrlGraphEmail $ toResponse ""
?