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.

Don't output `null` for last element in `list/array`

See original GitHub issue

Input:

list(,$first, $second, $three, $fourth,) = $arr;

Contain null in arguments.

Babylon example: https://astexplorer.net/#/gist/6d37953c6b42f02a3ffe48b6101127c3/745b62f49d2c011d789e6d9754a4d705db5cdab0

I think it is unnecessary, because it is doesn’t have sense for executing/parsing/printing/etc.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
ichiriaccommented, Aug 9, 2019

It’s fixed & will be released soon

0reactions
ichiriaccommented, Aug 9, 2019

ok, that was referenced under #345 & #346

Read more comments on GitHub >

github_iconTop Results From Across the Web

How do I get the last element of a list? - python
If your str() or list() objects might end up being empty as so: astr = '' or alist = [] , then you...
Read more >
Array Functions and Operators
Returns true if all the elements match the predicate (a special case is when the array is empty); false if one or more...
Read more >
Array.prototype.pop() - JavaScript - MDN Web Docs
The pop() method removes the last element from an array and returns that element. This method changes the length of the array. Try...
Read more >
Everything you wanted to know about arrays - PowerShell
What is an array? I'm going to start with a basic technical description of what arrays are and how they are used by...
Read more >
list - Manual
Gives the following output (note the order of the elements compared in which order they were written in the list() syntax):. array(4) {...
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