You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Returns an iterator from a given iterator where the occurrence of
# a Whatever value indicates that last value seen from the source
# iterator should be repeated indefinitely until either another
# non-Whatever value is seen from the source iterator, or the source
# iterator is exhausted.
This behaviour does not appear to be documented. However, the spectests do have tests for it: removing the special Whatever handling, results in t/spec/S03-metaops/zip.t tests failing.
I propose we at least add a documentation issue. And maybe a problem-solving issue whether this behaviour is wanted or not. Or to have a way to disable it.
ab5tract
added
the
LTA
Less Than Awesome; typically an error message that could be better
label
Mar 30, 2024
The Problem
If using the zip operator on a list with an interior
Whatever
, theWhatever
will be replaced with the previous element.Expected Behavior
The expected behavior should preserve the interior
Whatever
object, as only when it's a final element does it repeat the previous element (per docs).Actual Behavior
Steps to Reproduce
See above code. Note that the cross operator
X
does not have the same error:Environment
rakudo -v
orraku -v
): v2024.02.110.g.18.abe.8.c.32The text was updated successfully, but these errors were encountered: