-
|
I'm trying to do array subtraction after If you start with an array, and you subtract another array, you get exactly (and only) the results you'd expect, e.g.: But if you unwrap and later rewrap the array (perhaps to use a (Obviously in a real use case you'd never literally write Can anyone explain this behavior? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Nevermind, I figured out that the correct syntax would be |
Beta Was this translation helpful? Give feedback.
Nevermind, I figured out that the correct syntax would be
[.[]]or, more specifically,[.[] | select(...)]..[] | [.]doesn't give you["a","b"], it gives you["a"]and["b"]as separate items, so when you do array subtraction afterwards you are left with["a"]" and[].