Subject: | one() returns true if passed an open list. |
The docs state:
For an empty LIST, "one" returns false
However:
$ perl -MList::MoreUtils -E'say List::MoreUtils::one { 0 } ()'
1
It doesn't fail with the ::PP version.
$ perl -MList::MoreUtils -E'say List::MoreUtils::PP::one { 0 } ()'
0
(This was initially reported at https://github.com/perl5-utils/List-MoreUtils/issues/31. Sorry about that.)