Chapter 06: Example Application

The only "new" concept is just theprop function. fp-ts does not provide an equivalent functionarrow-up-right, but a more powerful library called monocle-tsarrow-up-right is recommended for this purpose. There is also a library called fp-ts-ramdaarrow-up-right which offer this function, among others to help bring feature parity to fp-ts.

I've modified the fp-ts-ramda implementationarrow-up-right so it can be used without any additional dependency for the purpose of this book:

const prop = curry((property, object) => object[property]);

Last updated