Skip to content

Instantly share code, notes, and snippets.

@salortiz
Last active July 8, 2016 02:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save salortiz/56ed771aa6d40d993ee3b65baadeef92 to your computer and use it in GitHub Desktop.
Save salortiz/56ed771aa6d40d993ee3b65baadeef92 to your computer and use it in GitHub Desktop.
--- a/src/core/Any-iterable-methods.pm
+++ b/src/core/Any-iterable-methods.pm
@@ -902,7 +902,7 @@ Did you mean to add a stub (\{...\}) or did you mean to .classify?"
todo = $elems;
my $value;
- return $value
+ return nqp::istype($value, Failure) ?? $value.throw !! $value
if nqp::isconcrete($value := self.AT-POS(i))
while nqp::islt_i(++i,todo);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment