-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Empty lists do not evaluate to true
with empty?
#3903
Comments
@fdncred Is anyone working on this? I'd like to give this a shot if no one is. |
Go for it @jafriyie1 |
Similar issue #3929 |
@jafriyie1 how's it going on this issue? We've had requests similar to yours here recently. |
@fdncred I stepped away a while from this as I got busy with other things. my apologies. I made a test for the corrected behavior and I am noticing that the issue comes from here empty_code. When I was testing around with this I saw that In addition to this, when we pass in |
I'm not sure @jafriyie1. @jntrnr any thoughts on this? |
Describe the bug
According to the book an empty table piped to
empty?
should returntrue
.However it seems to print an empty line instead.
How to reproduce
or simply
Expected behavior
[] | empty?
should printtrue
.Screenshots
No response
Configuration
version | pivot | to md
Additional context
Other datatypes work as expected with
empty?
.Notice the table type in particular .
An empty table works:
[[];[]]
.But an empty list seemingly not:
[]
.The text was updated successfully, but these errors were encountered: