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.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

No responses yet

Write a response