Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created January 29, 2018 05:07
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 Whateverable/290ed9fd294916e8ab999998a01ba81f to your computer and use it in GitHub Desktop.
Save Whateverable/290ed9fd294916e8ab999998a01ba81f to your computer and use it in GitHub Desktop.
evalable6
my Regex @rxs = (rx/3/, rx/2/); my @L = (1 .. 23); sub search(Mu $r where Regex) { grep $r, :v, @L }; say search( one(@rxs) );
(exit code 1)
Constraint type check failed in binding to parameter '$r'; expected anonymous constraint to be met but got Junction (one(rx/3/, rx/2/))
in sub search at /tmp/Po_uqxvVAe line 1
in block <unit> at /tmp/Po_uqxvVAe line 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment