array-mumu 0.2.0-rc.5

Array tools plugin for the Mumu ecosystem
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
extend("test")
extend("array")

describe("array:drop", () => {
  it("drops n elements", () => {
    expect_equal(array:drop(2, [1,2,3,4]), [3,4])
  })
  it("drops more than length to empty", () => {
    expect_equal(array:drop(10, [1,2]), [])
  })
  it("partial usage", () => {
    d2 = array:drop(2)
    expect_equal(d2([7,8,9]), [9])
  })
})