Skip to content

Instantly share code, notes, and snippets.

@raiph
raiph / BQNListOp.md
Created June 13, 2023 02:49 — forked from Xliff/BQNListOp.md
To Raku - The BQN List Operator

The BQN list operator can readily transfer into Raku. It's basically the same as Raku's list operator: ,. There is a small devil in the detail and that can be illustrated in the following example:

multi sub infix:<> ($a, $b) { 
  infix:<,>($a, $b) 
}

say 1‿2‿3; # ((1 2) 3)