[erlang-questions] spec declaration for single list parameter with fixed size
Tue Jul 5 01:14:24 CEST 2011
On 3/07/2011, at 8:10 PM, Roberto Ostinelli wrote:
> dear list,
> a very stupid spec declaration question. how can you declare the specs of a function which has a single list with multiple arguments?
> is there a better way to do so?
Don't (ab)use a list like this.
If the list always has two elements, why not make them separate arguments?
If the elements are fixed in number and differing in type, why is this a
list and not a tuple?
More information about the erlang-questions