Pick
Last updated
myMap:
cat: meow
dog: bark
thing: hamster
hamster: squeakyq '.myMap |= pick( (["thing"] + keys) | unique)' sample.ymlmyMap:
thing: hamster
cat: meow
dog: bark
hamster: squeak- cat
- leopard
- lionyq 'pick([2, 0, 734, -5])' sample.yml- lion
- cat