Coming from PureScript, I was surprised to not see _1 and _2.
@gcanti I'm very confused about why I need to call _1() ... the code is very similar to Either and _left where you have to call it? Why? Why can't it just be _1 and _left? I tried to make that the case using object syntax, but I'm too unfamiliar with TypeScript to figure out how to make the types work; I was able to use concrete types in my own code elsewhere, but the universally quantified ones, not so much.
Coming from PureScript, I was surprised to not see
_1
and_2
.@gcanti I'm very confused about why I need to call
_1()
... the code is very similar toEither
and_left
where you have to call it? Why? Why can't it just be_1
and_left
? I tried to make that the case using object syntax, but I'm too unfamiliar with TypeScript to figure out how to make the types work; I was able to use concrete types in my own code elsewhere, but the universally quantified ones, not so much.