Function copy$

  • Copy part of array to another!

    Type Parameters

    • T

    Parameters

    • x: T[]

      target array (updated!)

    • y: T[]

      source array

    • j: number = 0

      write index [0]

    • i: number = 0

      read begin index [0]

    • I: number = y.length

      read end index [|x|]

    Returns T[]

    x = x[0..j] ⧺ y[i..I] ⧺ x[j+I-i..]

Generated using TypeDoc