Skip to main content

Timeline for Count sum of all digits

Current License: CC BY-SA 3.0

11 events
when toggle format what by license comment
Mar 14, 2020 at 11:32 comment added Jo King This doesn't really do order of operations correctly, does it? For example 5*2/2*5 would evaluate to 1, not 25.
Apr 13, 2017 at 12:39 history edited CommunityBot
replaced http://codegolf.stackexchange.com/ with https://codegolf.stackexchange.com/
Sep 19, 2014 at 13:26 vote accept ST3
Mar 16, 2014 at 17:43 history edited Mouq CC BY-SA 3.0
deleted 2 characters in body
Mar 16, 2014 at 17:43 comment added Mouq Ohh, the $! would help get rid of the 'my '! Thanks @xfix
Mar 12, 2014 at 22:34 comment added Mouq @xfix, I'm not sure how that would help the golf. There is one way to really golf it, but it requires the not yet fully functional "infix:[$var]" syntax: my$g=get;for <* / + -> {$g~~s:g[(\d+)$^s(\d+){}]=infix:[$^s] |@()};say [+] (1..$g)».comb This would get the score down to 88 chars or -97 points
Mar 12, 2014 at 8:05 comment added null This is great. I like how you made a very simple parser - I tried, but I didn't manage to make something as short as this. Instead of my $g you may want to use something predeclared (I think that $! could work, but I haven't tested).
Mar 12, 2014 at 0:28 history edited Mouq CC BY-SA 3.0
added 9 characters in body
Mar 12, 2014 at 0:21 history edited Mouq CC BY-SA 3.0
deleted 128 characters in body
Mar 12, 2014 at 0:14 history edited Mouq CC BY-SA 3.0
deleted 128 characters in body
Mar 11, 2014 at 23:59 history answered Mouq CC BY-SA 3.0