question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug]: @babel/plugin-proposal-record-and-tuple Tuple concatenation does not work as expected

See original GitHub issue

💻

  • Would you like to work on a fix?

How are you using Babel?

Programmatic API (babel.transform, babel.parse)

Input code

#[1,2].concat(#[3,4])

// expected #[1,2,3,4]
// got #[#[1,2],#[3,4]]

Configuration file name

No response

Configuration

No response

Current and expected behavior

Current behavior: Concatenation of Tuples does not flatten the result. Expected behavior: A result analog to array concatenation: Resulting Tuple gets flattened one level.

Environment

Node version 17.0.1

Possible solution

No response

Additional context

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
rickbuttoncommented, Oct 26, 2021

0.0.4 is now published to npm

0reactions
stennocommented, Oct 28, 2021

This solved the issue.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Concatenation of tuples · Issue #224 · python/mypy - GitHub
Concatenation of fixed-length tuples should be supported by the type checker. Arbitrary tuples could be concatenated. Tuple[int, str] + Tuple[bool] results ...
Read more >
Issue 39641: concatenation of Tuples - Python tracker
The concatenation of two tuples into a third tuple, using the + command, causes an error if every member of each of the...
Read more >
Inconsistent behavior concatenating lists and tuples in python
+= for lists doesn't expect an actual list as its right-hand operand; it will accept any iterable value. It is effectively an operator ......
Read more >
Python | Ways to concatenate tuples - GeeksforGeeks
Many times, while working with records, we can have a problem in which we need to add two records and store them together....
Read more >
How to Concatenate tuples in python? | sum | join - YouTube
... try restarting your device. Your browser can 't play this video. ... Concatenate tuples inside a list using join() function 8.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found