[erlang-questions] Getting the position of a list item

Robert Virding <>
Thu Dec 3 15:47:02 CET 2009


2009/12/3 Garrett Smith <>

> On Wed, Dec 2, 2009 at 7:23 PM, Ngoc Dao <> wrote:
> >> string:str(List, [Element]).
> >
> > What a surprise! Thank you.
>
> A good example of "most astonishment" :)
>

Unfortunately they have added som type checking in string otherwise you
could do string:chr(List,Element). :-(

Robert


More information about the erlang-questions mailing list