google / google/jsonnet

std.setUnion unexpected behavior

Open
#1,251 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Jsonnet
Stars
7.6k
Forks
475
PR merge metrics
No merged PRs in 30d

Description

```
./jsonnet -e 'std.setUnion("a", ["2","3"])'
```

gives:

```
"[\"2\", \"3\"]a"
```

I think which should be an error or
`[
"2",
"3",
"a"
]`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.