string to tupple ?

info <>
Sun Jun 20 19:43:57 CEST 2010


After a few manipulation with list, string, I broke my head with this problem.

I extract from a mysql database a list representing a list of coordinates.
The string is like this "(a,b),(c,d),(e,f) ......."
I would like to transform this string in order to easily manipulate each coordinate.
What is the best representation in erlang ?
- a list of tupples : if yes how to transform it in [{a,b},{c,d},{e,f}, ....]
- other representations ?

John


More information about the erlang-questions mailing list