Currying 4 — Trace

Lukas Polak
1 min readSep 12, 2020

Function composition using point-free style creates a very concise and readable code:

Compose can be a fantastic, utility, but a more convenient way of reading code is top-to-bottom:

Currying can be a useful abstraction to specialized functions:

If the trace function were not curried, it would look like this:

Data the last style means that function should take the specializing parameters first and take the data later.

The arguments which have been applied to partially applied function are called fixed parameters.

Point-free style is a way of defining function without reference to its arguments. Point free function is created by calling a function that returns a function such as a curried function.

Originally published at https://dev.to on September 12, 2020.

--

--