Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created May 2, 2024 19:22
Show Gist options
  • Save Whateverable/e1613c809e934f752f82598e01a3fcc8 to your computer and use it in GitHub Desktop.
Save Whateverable/e1613c809e934f752f82598e01a3fcc8 to your computer and use it in GitHub Desktop.
evalable6
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;
(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