[erlang-questions] Types and specs [WAS: [enhancement] string:split/2]

Edwin Fine <>
Fri Oct 10 19:00:30 CEST 2008


>
> If the function returned a list of at least one non-empty string, it would
> have the following type instead:
>
>        [[char(),...],...]
>
> If empty strings were allowed but there needed to be at least one of them,
> the return type would have been:
>
>        [[char()],...]
>
> Hope this clears up the issue.
>

Yes, it does. Thanks for clarifying that.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20081010/43a389cf/attachment.html>


More information about the erlang-questions mailing list