« first day (162 days earlier)      last day (1801 days later) » 

 
9 hours later…
9:42 AM
@BMO why is it necessary?
 
 
2 hours later…
BMO
12:04 PM
@Laikoni: Do you mean the space?
(If that's the case, it is because otherwise the length would be divisible by 3 and the gcd would always be 3 as well.)
@Nitrodon: Well caught! Not sure how the two of us missed that -.-
 
 
4 hours later…
3:49 PM
Yes, I was referring to the space and thought there might be a weird syntax rule which enforces it front of the comment.
 
 
4 hours later…
7:20 PM
damn Data.Char doesn't have a swap case function
 
7:33 PM
@totallyhuman More than half of my code is implementing one. :(
 
did it on my own and saw that you had exactly the same approach
 
Not exactly the same. You are using a list comp instead of a map
You can golf yours I'm pretty sure
 
the code might not be the same, but the algorithm is :P
 
BMO
@Laikoni: Luckily no :) Thinking about it now, we should have provided some context..
 
Yeah, that was my thinking
 
7:41 PM
if only there was a pointfree ternary that's short
 
if'?
I believe that requires imports though
 
yeah and that's not short :(
 
oh right
 
BMO
What kind of chars are allowed in the string?
 
7:53 PM
All types
I had a similar answer earlier
 
BMO
That's annoying :(
 
 
3 hours later…
10:30 PM
@WheatWizard that was a really clever answer:)
 
Which one?
 
Another approach for a case swap function: f x=last$x:do(a,b)<-zip['a'..'z']['A'..];[b|x==a]++[a|x==b]
Though it's 97 bytes for the challenge: Try it online!
 
10:47 PM
@WheatWizard the euler poincaré
 
Oh. It just seemed like the way to do it.
 
It never occured to me to just count the the vertices in the triangulation and divide by 2:)
 

« first day (162 days earlier)      last day (1801 days later) »