Hi Kensei!

So the reason we don’t allow negative indexes for tulles is because we
would have to support them on elem/2 but if we do so it can’t work on
guards (at least not efficiently).

Also, as the docs for Tuple says, you should really really avoid index
access for tuples. Pattern matching is almost always better.

Thanks!

-- 
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/CAGnRm4K%3D5Q-58iT0fsDF-zLNJbcjPG1YqSuz-6XVkZPDc05aTg%40mail.gmail.com.

Reply via email to