Help for this page

Select Code to Download


  1. or download this
    sub interleave {
        # PNAMBIC; I'm just making two arrays using length args
    ...
        
        # Some magic happens here with @$a and @$b
    }
    
  2. or download this
    # These are just demonstrator edge cases
    interleave(1, 1);
    ...
    ABBBBABBBBBABBBBBA  # 'B' strings can be swapped around
    interleave(7, 4);
    ABABABABAAA