title: Filter list of map using Enum.reduce
body: <p>I have a map as</p>
  <pre><code>%Subject
  {
      sub_id: 1,
      content: %{
                 sub_name: &quot;oracle&quot;,
                 type: &quot;code&quot;,
      },
      publisher: &quot;quantum&quot;,
      ouby_id: &quot;afc5a6e23208&quot;,
      region: &quot;USA&quot;,
    }
  </code></pre>
  <p>I have a list as follows</p>
  <pre><code>[
  %user{id: 4, name: &quot;kane&quot;, status: &quot;A&quot;},
  %user{id: 3, name: &quot;Harry&quot;, status: &quot;P&quot;},
  %user{id: 5, name: &quot;Tom&quot;, status: &quot;A&quot;}
  ]
  </code></pre>
  <p>I want to filter <strong>User</strong> with status: &quot;A&quot;  and create a new map as</p>
  <pre><code>[
  %{id: 4,name: &quot;kane&quot;, sub_id: 1, sub_name: &quot;oracle&quot;},
  %{id: 5,name: &quot;Tom&quot;, sub_id: 1, sub_name: &quot;oracle&quot;}
  ]
  </code></pre>
  <p>Can anyone please help me with this?</p>
  <p>Thank you.</p>