Skip to content

Instantly share code, notes, and snippets.

@pcarbajals
pcarbajals / visidata-cheatsheet.md
Last active November 2, 2025 04:09
VisiData Cheatsheet
input = [{ id: 2 }, { id: 3 }, { id: 8 }]
known_ids = [1, 2, 3, 4, 6, 7]
# extract ids as array
input_ids = input.map(&:values).flatten
# find the intersection (ids in common) between the arrays
common_ids = known_ids & input_ids # => [2, 3]
# find the union (all ids) between the arrays