fp-ts Tutorial | Chapter 2.2: Option fromPredicate

preview_player
Показать описание
In Chapter 2.2 of this fp-ts tutorial (functional programming in TypeScript), we will introduce Option fromPredicate, which is a util that allows creating smart Option constructors from predicate functions.

00:00 Definition
00:31 getEven example
00:59 getDiscountText example
01:59 Working with refinements
Рекомендации по теме
Комментарии
Автор

I'm beginner of fp. Really thanks this series, it help me a lot. Hope you have another series :D

namnhan
Автор

Excellent video! Thank you for this helpful content. Would love to see more complex flows, i.e. multiple predicates

rafaelhernandz
Автор

Best tutorials on YouTube. I hope MrFunctor gets popular. Would like to see him code in different functional languages / libraries.

HoboManAwesome
Автор

I've worked with fp-ts the past, but our team only took advantage of the Either type. The rest of fp-ts seemed to be too scary for us. I've been enjoying this series because of how useful it's been. I'd love to see examples with more complicated data types like promises or API responses

joshuayoes
Автор

Will you be doing any videos on effect-ts?

ShawnShaddock
welcome to shbcf.ru