map over bitstring

rgowka1 <>
Thu Oct 21 21:56:12 CEST 2010


Hi -

How do I map a function over a bitstring without converting into string or list.

For example - how can I replace << "a" >> with << "X" >> and any other
character to << "Y" >>??

InBin = << "abcaa" >>

OutBin = << "XYYXX" >>

thanks.


More information about the erlang-questions mailing list