The earliest function as proposed by Jose above is more like the sort_by 
function than the min function. It returns a sorted list.

On Friday, October 11, 2019 at 2:40:47 PM UTC+8, Fernando Tapia Rico wrote:
> I would drop the `mapper` function, and have a similar interface to 
> `Enum.min/2`: `DateTime.earliest(list_of_dates, empty_fallback // fn -> 
> raise(...) end)`.

You received this message because you are subscribed to the Google Groups 
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
To view this discussion on the web visit

Reply via email to