dear list,<br><br>a very stupid spec declaration question. how can you declare the specs of a function which has a single list with multiple arguments?<br><br>For instance, consider this function:<br><br>myfun([One, Two]) -><br>
<br>these two following declarations do obviously not work:<br><br>-spec myfun([One::string(), Two::integer()]) -><br>-spec myfun(list(One::string(), Two::integer())) -><br><br>the proper way seems to be:<br><br>-spec myfun([string() | integer()]) -><br>
<br>however i feel this to be very misleading, as the specs do not show the order nor the fixed length of the parameter list.<br><br>is there a better way to do so?<br><br>thank you.<br><br>r.