I have a function here
(map (\ (a, b) -> dir a b) $ routes
where routes is a list of tuples and it contains
routes = [...
("graph-fb", seeOther redirectUrlGraphEmail $ toResponse ""),
("post-fb", seeOther redirectUrlGraphPost $ toResponse ""),
...]
Here is the question: when I call this function to apply dir on each tuple, which function is going to be returned as b in dir a b first, the function seeOther redirectUrlGraphEmail or seeOther redirectUrlGraphEmail $ toResponse ""?
Tuples items are separated by
,which means that in your example forgraph-fb,The first function call to resolve will be
toResponse "", and that will be fed intoseeOtheras the second parameter. The result of this will then have the labelbinside the mapping function.