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
extend("test")
extend("array")

describe("array:drop_while", () => {
  it("drops while predicate true", () => {
    expect_equal(array:drop_while(x => x < 3, [1,2,3,1]), [3,1])
  })
  it("partial usage", () => {
    dw = array:drop_while(x => x <= 10)
    expect_equal(dw([5,10,11,10]), [11,10])
  })
})