DEV Community

Discussion on: Daily Challenge #138 - Do I get a Bonus?

Collapse
 
nickholmesde profile image
Nick Holmes

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"