sub infix:<in> (|args) { infix:<∈> |args }

Run Settings
LanguageRaku
Language Version
Run Command
# One way to express "set membership" in Raku: print 3 ∈ [1,2,3,4]; # True # One way to mimick your code is to create a new operator in ordinary code: sub infix:<in> (|args) { infix:<∈> |args } # The above modifies the compiler (not interpreter). So this code *compiles*: print 3 in [1,2,3,4]; # True # To confirm that the above modifies the *compiler*, try moving the `sub infix` line # to here and then click `Run` again. You'll get a *compile-time* error message so # neither of the `print` statements get executed!
Editor Settings
Theme
Key bindings
Full width
Lines