Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Investigate destructure extensions #66

Open
0x706b opened this issue Feb 26, 2022 · 1 comment
Open

Investigate destructure extensions #66

0x706b opened this issue Feb 26, 2022 · 1 comment

Comments

@0x706b
Copy link
Contributor

0x706b commented Feb 26, 2022

/**
 * @tsplus destructure Chunk
 */
export function get_<A>(self: Chunk<A>, n: number): A {
  // impl
}

const [a, b] = chunk
// const [a, b] = [get_(chunk, 0), get_(chunk, 1)]
@0x706b 0x706b created this issue from a note in TypeScript Extensions (To do) Feb 26, 2022
@mikearnaldi
Copy link
Member

Probably we can use extension of indexed access not needing a different tag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants