[erlang-questions] How to match on a nested record against a dict

Jarrod Roberson jarrod@REDACTED
Sun Nov 22 16:55:35 CET 2009


On Sun, Nov 22, 2009 at 2:17 AM, Igor Ribeiro Sucupira <igorrs@REDACTED>wrote:

> Hi, Jarrod.
>
> I can't understand exactly what you want, so I'll give you an example.
>
> Suppose DomainsSet is a sets of domains and DnsRec is a dns_rec. This
> would be a list of the domains that are present in some resource
> record and in DomainsSet:
> [Domain || #dns_rr{domain = Domain} <- DnsRec#dns_rec.anlist,
> sets:is_element(Domain, DomainsSet)]
>
> Is that helpful?
>
> Igor.
>
> thanks it is a place for me to start


More information about the erlang-questions mailing list