Skip to content
loading...

re: Daily Challenge #138 - Do I get a Bonus? VIEW POST

FULL DISCUSSION
 

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"
code of conduct - report abuse