Help for this page

Select Code to Download


  1. or download this
    sub op { @^lhs Z+ @^rhs };
    
    say (1,2) [&op] (3,4); # (4 6)
    
  2. or download this
    my &infix:<op> = { @^lhs Z+ @^rhs };
    
    say (1,2) op (3,4); # (4 6)
    
  3. or download this
    my &infix:<op> = &[Z+];
    
    say (1,2) op (3,4); # (4 6)