我有以下數組中:想篩選嵌套哈希鍵數組
[#<PatchedOpenStruct name="Kristen Stewart", id="162655167", characters=["Snow White"]>, #<PatchedOpenStruct name="Chris Hemsworth", id="770829335", ch
aracters=["The Huntsman"]>, #<PatchedOpenStruct name="Charlize Theron", id="162654733", characters=["The Queen"]>, #<PatchedOpenStruct name="Viggo Mort
ensen", id="162654541">, #<PatchedOpenStruct name="Sam Claflin", id="771073196", characters=["Prince"]>]
我試圖過濾所有的「名稱」從這個領域。任何幫助?
過濾器的含義:a)顯示所有名稱......或b)顯示與特定名稱匹配的PatchedOpenStruct? –
給我看所有的名字 – hilarl