Pwned.Utils.EmailReducer (pwned_coretheory v1.5.3) View Source

Functions for reducing the email list returned from the breachedaccount API v3.

Link to this section Summary

Functions

Reduces the list of flattened emails returned from the EmailFlattener.flatten/1 call, and returns the integer sum.

Link to this section Functions

Link to this function

reduce_email_list(email_list)

View Source

Reduces the list of flattened emails returned from the EmailFlattener.flatten/1 call, and returns the integer sum.

This sum indicates the number of times a given email has appeared in data breaches from the breachedaccount service.

Example

iex> reduce_email_list(email_list)

  4893554722