Here's a use case...

I have several "catalog" entries, each with a min & max. I'd like to 
determine the union of these entries. Converting them to Ranges and then 
getting the union of those would be an intuitive way.

On Monday, February 15, 2016 at 2:50:12 AM UTC-7, José Valim wrote:
>
> I am OK with adding more functions to Range but I would like to hear use 
> cases. Come with a problem where you need those functions and start a 
> discussion. Adding functions for the sake of the function itself is just 
> adding complexity to the stdlib.
>
>
>
> *José Valim*
> www.plataformatec.com.br
> Skype: jv.ptec
> Founder and Director of R&D
>
> On Mon, Feb 15, 2016 at 6:23 AM, eksperimental <[email protected] 
> <javascript:>> wrote:
>
>> I have created a set of functions for the range module.
>> Initially, I based my work in functions written by "jdl"
>>
>> https://github.com/mykewould/crutches/blob/ddf5535d66601f9630bee1807ef38cb57f52b9b4/lib/crutches/range.ex
>>
>> You can have a look at the module and tests:
>> https://github.com/eksperimental/elixir/blob/range/lib/elixir/lib/range.ex
>>
>> https://github.com/eksperimental/elixir/blob/range/lib/elixir/test/elixir/range_test.exs
>>
>> New functions are: congruent?/2, disjoint?2, contiguous?/2,
>> intersection/2, member?/2, overlaps?/2, reverse/1, size/1, sort/2,
>> subset?/2, to_list/2, union/2
>>
>> Some functions have been taken from MapSet, and other apply exclusively
>> to Range.
>>
>> Please let me know what you think of this.
>>
>> And if there is an interest in adding this Elixir, I will have to
>> contact the author of the initial functions for release permission.
>>
>> Cheers
>>
>> --
>> 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] <javascript:>.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/elixir-lang-core/20160215122339.1baa83e6.eksperimental%40autistici.org
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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/3ee8fd42-cc3c-45bb-8415-77582cefe29b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to