Here's an F# version of the function without obvious args, and really without any multiplication;
let payDay = function | true -> sprintf "€%d0" | _ -> sprintf "€%d"
But it works...
let pay = payDay true 100
// pay = "€1000"
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.