[erlang-questions] missing function

Maxim Treskin zerthurd@REDACTED
Tue Dec 23 13:54:16 CET 2008


> However, since a string is basically just a list, you can probably use
> string:str/2
>
>
>
> For example:
>
> > string:str([10,23,54,234,52], [54]).
>
> 3
>
In string.erl:

-spec str(string(), string()) -> non_neg_integer().


There is very large number of list elements types, not only
non_neg_integer()

May be better way is include new function in lists.erl and call it from
string.erl

-- 
Maxim Treskin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20081223/a0d04cd8/attachment.htm>


More information about the erlang-questions mailing list