I have a data structure (below) and I want to know how to extract the :title and other values from each map. I've experimented using Chat GPT and I still can't figure it out. I assume there is some combination of piplines or pattern matching that makes this easy. I tried stringing together Enum and a pipeline of Map etc and I just make a mess.
data = [
ok: %{
description: "HuffPost - United States",
id: "",
url: "whatever.com",
entries: [
%{
content: "The former president gave a truly bizarre \"White House\" gift to a visitor.",
id: "DE33CE1185AC820EB138C4828BD67DFC52BB78C5674885FFB842160753535DD9",
image: "",
title: "Dolphin Found Shot Dead On Louisiana Beach With 'Multiple Bullets' In Body",
updated: ~U[2024-04-25 10:23:48Z],
url: "https://www.huffpost.com/entry/dolphin-shot-dead-louisiana_n_662a2707e4b01a688b3df1d9"
},
%{
content: "The former president gave a truly bizarre \"White House\" gift to a visitor.",
id: "DE33CE1185AC820EB138C4828BD67DFC52BB78C5674885FFB842160753535DD9",
image: "",
title: "Dolphin Found Shot Dead On Louisiana Beach With 'Multiple Bullets' In Body",
updated: ~U[2024-04-25 10:23:48Z],
url: "https://www.huffpost.com/entry/dolphin-shot-dead-louisiana_n_662a2707e4b01a688b3df1d9"
}
]
},
ok: %{
# same as above - (about 50 more entries)
}
]