Skip to content

bug: Allow null end parameter in std.slice / array indexing #330

@He-Pin

Description

@He-Pin

refs: CertainLach/jrsonnet#176

jsonnet -e "std.slice(std.range(1,4), 0, null, 2)"
[
   1,
   3
]

In sjsonnet got :

sjsonnet.Error: Wrong parameter type: expected Int, got null
    at [std.slice].(:1:10)

, but it works fine in official jsonnet

[
  1,
  3
]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions