Re: [elixir-core:11411] [Proposal] Add function average or avg to Enum module.

2023-05-23 Thread Julian Somoza
>> possible, like Nx having its own compilation pipeline to bypass limitations >> of BEAM. >> >> >> >> >> >> Original Message >> On 23 May 2023, 03:05, Julian Somoza < julian...@gmail.com> wrote: >> >> >

[elixir-core:11407] [Proposal] Add function average or avg to Enum module.

2023-05-22 Thread Julian Somoza
Just as is there a function to get the *min,* *max, sum, *etc values from an Enum, would be useful to have also an average function. Enum.avg/1 or Enum.average/1 If it's ok for the community, I will be happy to implement it. Example: iex> Enum.avg(0..10) 5 -- You received this message

Re: [elixir-core:11269] [Question] :math module

2023-02-23 Thread Julian Somoza
I was left wanting to comment on the following, perhaps for fear of responding to Valim himself  and sounding daring. >From my humble opinion and user experience of several years programming (other languages), I feel more comfortable with an *Integer* module for things like* Integer.to_string*

Re: [elixir-core:11268] [Question] :math module

2023-02-23 Thread Julian Somoza
to native >> code with vectorization and whatnot. >> >> If erlang would add something unholy to its stdlib, you'll be free to >> ignore it, and keep using your righteous implementation :) >> >> --- Original Message --- >> On Thursday, February 23rd, 20

[elixir-core:11265] [Question] :math module

2023-02-23 Thread Julian Somoza
Hi, I would like to understand why or what would be the problem with having our own Math module on Elixir. I know that some people think that has no sense to duplicate modules that already exist in Erlang but... Where is the "sovereignty"? If I would like to add a new math function, why do I

Re: [elixir-core:10990] Proposal: New function on List module

2022-07-19 Thread Julian Somoza
16:50, Zach Daniel () escribió: > Ah, sorry I misunderstood. The names i proposed are not good :) > > > On Fri, Jul 15 2022 at 11:07 AM, Julian Somoza > wrote: > >> Hi Zach, absolutely no. >> >> List.includes_list?([1, 2, 3], [1, 1, 1]) >> false

Re: [elixir-core:10981] Proposal: New function on List module

2022-07-15 Thread Julian Somoza
Moore_string_search_algorithm> >> shouldn't add too much complexity and can provide a meaningful improvement. >> >> On Fri, Jul 15, 2022 at 3:32 PM Julian Somoza >> wrote: >> >>> Thanks for your replies, >>> >>> yes, it could be an String.c

Re: [elixir-core:10978] Proposal: New function on List module

2022-07-15 Thread Julian Somoza
tt, true) or > contains?(t, [h | tt], strict?) > end > ``` > > On Fri, Jul 15, 2022 at 2:07 PM 'eksperimental' via elixir-lang-core < > elixir-lang-core@googlegroups.com> wrote: > >> Hi Julian. >> It think it is a good addition. >> It is also analog

[elixir-core:10976] Proposal: New function on List module

2022-07-15 Thread Julian Somoza
middle or in the end. Looking forward for your comments, BR, Julian Somoza. -- 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 elixir-lang-core+unsubs