Writing Fluent Functional Codeby@hesher
3,737 reads

Writing Fluent Functional Code

May 13th 2020
3 min
by @hesher 3,737 reads
tldt arrow
Read on Terminal Reader🖨️

Too Long; Didn't Read

The most straightforward functional approach is using `pipe()` with stateless setters. This pattern doesn’t allow you chaining, but some of us need chaining to feel comfortable in reading code. The idea here is that the expression builder is based on a curried function that accepts a path defined by lens. value: value: the value to write to the path defines by lens, value: set will return a new object (never mutate) based on the source object with the new property and value.

Coin Mentioned

Mention Thumbnail
featured image - Writing Fluent Functional Code
react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa