array-mumu 0.2.0-rc.5

Array tools plugin for the Mumu ecosystem
Documentation
extend("test")
extend("array")

describe("array:range", () => {
  it("creates an increasing range", () => {
    expect_equal(array:range(1, 5), [1,2,3,4])
  })
  it("returns empty when start >= end", () => {
    expect_equal(array:range(3, 3), [])
    expect_equal(array:range(5, 2), [])
  })
  it("supports negative bounds", () => {
    expect_equal(array:range(-2, 2), [-2,-1,0,1])
  })
  it("supports partial usage", () => {
    r = array:range(10)
    expect_equal(r(13), [10,11,12])
  })
})