I have read Printing the values inside a tuple in Haskell and the solution works.
My intention with this question is understand what does $
symbol by "translating" the code into a $
free code.
showDetails :: (String, Int, Int) -> String
showDetails (name, uid, _) = "Your name is:" ++ name ++ " Your ID is: " ++ show uid
main = do
putStrLn . unlines . map showDetails $ [("A",100,1),("B",101,2)]
How does $
to tell showDetails to be applyed to list elements (the tuples)?
What is the $
free version of that line?