I believe we can wait with addition of such function in stdlib until more 
use cases arise besides code puzzle.
Another reason for waiting is that the code for checking this looks 
fairly straightforward:

  first1..last1 = range1
  first2..last2 = range2
  first1 >= first2 and last1 <= last2

On Tuesday, December 20, 2016 at 10:43:07 PM UTC+1, Patrick Davey wrote:
>
> I wanted to check if a range contained another range today while I was 
> doing one of the www.adventofcode.com puzzles.
>
> I discussed it on the forum and I have done a search and it doesn't look 
> like it has been proposed before, apologies if I have missed something.
>
> Anyway, just an idea, I'm happy to have a go at implementing it if it's 
> something which merits approval. I understand if it's too simple a thing to 
> be bothered implementing.
>
> Thanks to the team for Elixir - I'm thoroughly enjoying getting more 
> comfortable with it through the advent of code puzzles :)
>

-- 
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/e2006c94-0c27-47e9-b5eb-16aefbd611bc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to