Skip to content

Add Tuple support: _1, _2#172

Open
toastal wants to merge 1 commit into
gcanti:masterfrom
toastal:tuple
Open

Add Tuple support: _1, _2#172
toastal wants to merge 1 commit into
gcanti:masterfrom
toastal:tuple

Conversation

@toastal

@toastal toastal commented Dec 17, 2021

Copy link
Copy Markdown

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.

@toastal
toastal force-pushed the tuple branch 11 times, most recently from 9794502 to db63fcc Compare December 17, 2021 06:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant