To clarify, my issue is that I want something more assertive than the 
current String.split/3, that lets me skip the boilerplate of:

string = "abcd"
parts = 3
result = String.split(string, "e", parts: 3)
if length(result) == parts do
  {:ok, List.to_tuple(result)}
else
  {:error, :i_need_more_parts}
end

I omitted this in my original post by accident.

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/38a4a07f-3cc6-4c21-80cb-59dd4b601cf8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to