If a function takes more than one argument, you can apply them to the right side of the function, each value preceded by its own < operator. Here is an example: let calculateMarkedPrice price discount = price * (100.00  discount) / 100.00 let netPrice = calculateMarkedPrice < 145.50 < 25.00 printfn "Net Price: %0.02f" netPrice In the same way, you can apply as many values as necessary to a function.
If a function takes two arguments, you can apply one to the left and the other to the right side of the function. Here is an example: let calculateMarkedPrice price discount = price * (100.00  discount) / 100.00 let netPrice = 145.50 > calculateMarkedPrice < 25.00 printfn "Net Price: %0.02f" netPrice If a function takes more than two varguments, you can apply one to the left and the others to the right side of the function. Here is an example: let calculateNetDecimalEquivalent a b c = let complementA = (100.00  a) / 100.00 let complementB = (100.00  b) / 100.00 let complementC = (100.00  c) / 100.00 complementA * complementB * complementC let calculateNetPrice price netDecimal = price * netDecimal let nd = 20.00 > calculateNetDecimalEquivalent < 10.00 < 5.00 let netPrice = 2500.00 > calculateNetPrice < nd printfn "Net Decimal: %0.03f" nd printfn "Net Price: %0.02f" netPrice
In the previous examples, we first defined the function(s) to compose. As an alternative, you can create the function(s) directly in the placeholder. This is done by creating (a) lambda expression(s). Here are examples: let hourlySalary = 25.85
let yearEvaluation = (fun salary > salary * 8.00) >> (fun value > value * 5.00) >> (fun value > value * 2.00) >> (fun value > value * 2.00) >> (fun value > value * 12.00)
let yearlySalary = yearEvaluation hourlySalary
sprintf "Yearly Salary: %0.0f" yearlySalary
Remember that, to make your code easy to read, you can write each function preceded by its << or >> on its own line with proper indentation. Here are examples: let hourlySalary = 25.85
let yearEvaluation =
(fun salary > salary * 8.00)
>> (fun value > value * 5.00)
>> (fun value > value * 2.00)
>> (fun value > value * 2.00)
>> (fun value > value * 12.00)
let yearlySalary = yearEvaluation hourlySalary
