[eeps] Proposal for /\ and \/ operators

James Hague <>
Thu Feb 26 16:35:39 CET 2009


I like this.  I suggested it on the erlang-questions list recently,
except that I used "min" and "max" instead of operators (and I prefer
the named functions over operators).

Please consider adding a function that forces a value to be within two
limits, as it's a common use of min and max.  I usually call this
"cap", but "limit" is probably clearer:

limit(A, Low, High) ->
   min(max(A, Low), High).



More information about the eeps mailing list