[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:
- Created 2 years ago
- Comments:5 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
0.0.4
is now published to npmThis solved the issue.