you are right in fact it isn't !!!
if we look at the fp-ts pipe signature and all the types overload ... the first params is a Generic and doesn't have to be a function :
for this reason, we can pass the Option gcanti.github.io/fp-ts/modules/Opt... as the first argument and then pipe its model inside the M.matchW('_tag')
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I don't quite get this part:
Why do we pass
o
through a pipe? It is not a function because later in assertion, we provide aO.some('data')
as a parameter foroptionMathing
.you are right in fact it isn't !!!
if we look at the fp-ts
pipe
signature and all the types overload ... the first params is a Generic and doesn't have to be a function :gcanti.github.io/fp-ts/modules/fun...
for this reason, we can pass the Option
gcanti.github.io/fp-ts/modules/Opt... as the first argument and then pipe its model inside the
M.matchW('_tag')