Re: [elixir-core:7266] Re: [Proposal] Calendar behaviour additions to support localisation libraries and other calendar calculations

2017-07-12 Thread Ed W
I think your problem boils down to defining the first day of the "year"? After that you can simply count days and divide by 7? Similarly a week end will be defined by (mod(days, 7) == 0) Perhaps you need a function which takes a year and gives you the date of the start of the ye

Re: [elixir-core:6011] Proposal: add native language support for handling Decimal types

2016-06-30 Thread Ed W
On 30/06/2016 10:40, Ed W wrote: On 30/06/2016 09:37, José Valim wrote: My long term wish is to actually provide decimal with unit support in the standard library but, because we can't really make it really first class in the standard library (i.e. we can't support it in guards), I still

Re: [elixir-core:5700] Add boolean methods for different unicode character groups (String.alphanumeric?, etc)

2016-05-11 Thread Ed W
e DB isn't needed Thanks for listening! Ed W On 10/05/2016 01:17, Ben Wilson wrote: http://nerves-project.org/ Enjoy :) On Monday, May 9, 2016 at 12:36:45 PM UTC-4, Ed Wildgoose wrote: On 05/05/2016 17:44, w.m.w...@student.rug.nl wrote: > - when included in the stdlib, compilin

Re: [elixir-core:5693] Add boolean methods for different unicode character groups (String.alphanumeric?, etc)

2016-05-09 Thread Ed W
and runtime size is important. I guess I'm not really "embedded" as my linux image sizes are usually 10MB+ (including kernel), but I still want to keep things small when I can. Having the ability to strip down unicode support may be useful for some requirements... Thanks for consideratio