A more extreme style.. point free sort of means named-argument-free (it relies on currying, basically)

let add10To = List.map((+) 10)

add10To is a function that takes one parameter, a list, and adds 10 to all items in a list.

add10To [1;2;3] evaluates to [11;12;13]

We could be more generic and operate over IEnumerables ...

let add10To = Seq.map((+) 10)
OR INSANELY GENERIC and take the function to apply as a non-argument

let doSomethingTo = Seq.map

.. which appears to take us through the rabbit hole and right back to a useful function.

That, or I need less coffee? More? You decide..
Shared publiclyView activity