Hi ,<br><br>I am trying to write a decoding logic to decode a list which has a predefined separator ( eg.  tab). But  the  distance at which the  separator will occur from the start of the list is unknown. I want to extract all the values before the separator into one list and the rest of the list into another, what would be the best way of doing this in Erlang?    <br>

<br>for example if the program is given a list like [ 23, 34,  9, 34, 78, 90, 9, 10, 34 ]<br><br>I want this to  be split into [23, 34] , [ 34, 78, 90, 9, 10, 34] using 9 as the separator(the point at which will occur is a variable and aslo there might be multiple occurances of it).<br>

<br>Am I supposed to use the string:tokens(<i>string</i>, <i>substring</i>), but is there a more efficient way of doing it in Erlang?<br clear="all"><br>-- <br>Sayanthan