Lambda functions
\<ARGUMENT1> <ARGUMENT2> -> <FUNCTION BODY>ghci> (\x -> x * 3) 4
12trackScore4 :: Float -> Float -> String
trackScore4 time avgTime
| time < avgTime = "Great! Your time is " ++ show (score) ++ "
seconds below average!"
| time > avgTime = "Your time is " ++ show (score) ++ " seconds
above average."
| otherwise = "Your time is on par with the average time!"
where
score = (\x y -> abs (x - y)) time avgTimeLast updated