Skip to content

Instantly share code, notes, and snippets.

@zoffixznet
Created March 12, 2018 17:34
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 zoffixznet/8d30031909cc5ad6d6ba82eb72104249 to your computer and use it in GitHub Desktop.
Save zoffixznet/8d30031909cc5ad6d6ba82eb72104249 to your computer and use it in GitHub Desktop.
--------------------------------------------------------------------------------
| A | Level | Examples |
--------------------------------------------------------------------------------
| N | Terms | 42 3.14 "eek" qq["foo"] $x :!verbose @$array |
--------------------------------------------------------------------------------
| L | Method postfix | .meth .+ .? .* .() .[] .{} .<> .«» .:: .= .^ .: |
--------------------------------------------------------------------------------
| N | Autoincrement | ++ -- |
--------------------------------------------------------------------------------
| R | Exponentiation | ** |
--------------------------------------------------------------------------------
| L | Symbolic unary | ! + - ~ ? | || +^ ~^ ?^ ^ |
--------------------------------------------------------------------------------
| L | Dotty infix | .= . |
--------------------------------------------------------------------------------
| L | Multiplicative | * / % %% +& +< +> ~& ~< ~> ?& div mod gcd lcm |
--------------------------------------------------------------------------------
| L | Additive | + - +| +^ ~| ~^ ?| ?^ |
--------------------------------------------------------------------------------
| L | Replication | x xx |
--------------------------------------------------------------------------------
| X | Concatenation | ~ |
--------------------------------------------------------------------------------
| X | Junctive and | & |
--------------------------------------------------------------------------------
| X | Junctive or | | ^ |
--------------------------------------------------------------------------------
| L | Named unary | temp let |
--------------------------------------------------------------------------------
| N | Structural infix | but does <=> leg cmp .. ..^ ^.. ^..^ |
--------------------------------------------------------------------------------
| C | Chaining infix | != == < <= > >= eq ne lt le gt ge ~~ === eqv !eqv =~= |
--------------------------------------------------------------------------------
| X | Tight and | && |
--------------------------------------------------------------------------------
| X | Tight or | || ^^ // min max |
--------------------------------------------------------------------------------
| R | Conditional | ?? !! ff fff |
--------------------------------------------------------------------------------
| R | Item assignment | = => += -= **= xx= |
--------------------------------------------------------------------------------
| L | Loose unary | so not |
--------------------------------------------------------------------------------
| X | Comma operator | , : |
--------------------------------------------------------------------------------
| X | List infix | Z minmax X X~ X* Xeqv ... |
--------------------------------------------------------------------------------
| R | List prefix | print push say die map substr ... [+] [*] any Z= |
--------------------------------------------------------------------------------
| X | Loose and | and andthen notandthen |
--------------------------------------------------------------------------------
| X | Loose or | or xor orelse |
--------------------------------------------------------------------------------
| X | Sequencer | <==, ==>, <<==, ==>> |
--------------------------------------------------------------------------------
| N | Terminator | ; {...}, unless, extra ), ], } |
--------------------------------------------------------------------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment