elixir-lang/elixir — pull request #2901 by xavier (2014-11-24 21:20:10+00:00)
Title: Add Enum.minmax and Enum.minmax_by

Continuing with the great tradition of following Ruby's footsteps when it comes to bringing happiness to developers: here is a couple of small but handy additions to the Enum module: `minmax` and `minmax_by` which will return the minimum and maximum values of a given collection in a single pass.