Created
May 2, 2024 19:22
-
-
Save Whateverable/e1613c809e934f752f82598e01a3fcc8 to your computer and use it in GitHub Desktop.
evalable6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use MONKEY-TYPING; augment class Array { method typed { Array[self[0].WHAT].new(|self) } } say [1, 2, 3].WHAT; say [1, 2, 3].typed.WHAT; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(exit code 1) | |
===SORRY!=== Error while compiling /tmp/Yw5RcIAYD0 | |
Strange text after block (missing semicolon or comma?) | |
at /tmp/Yw5RcIAYD0:1 | |
------> Array[self[0].WHAT].new(|self) } }⏏ say [1, 2, 3].WHAT; say [1, 2, 3].typed | |
expecting any of: | |
infix | |
infix stopper | |
statement end | |
statement modifier | |
statement modifier loop |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment