1HaskellADay (@1HaskellADay) header
1HaskellADay (@1HaskellADay) profile picture

A short Haskell algorithmic puzzle, each day. Puzzle at Midnightish EST (GMT-5) Answer at 11pm EST (GMT-5)

U.S.A.
Joined February 2014
Photo by 1HaskellADay (@1HaskellADay)Photo by 1HaskellADay (@1HaskellADay)Photo by 1HaskellADay (@1HaskellADay)Photo by 1HaskellADay (@1HaskellADay)Photo by 1HaskellADay (@1HaskellADay)Photo by 1HaskellADay (@1HaskellADay)Photo by 1HaskellADay (@1HaskellADay)Photo by 1HaskellADay (@1HaskellADay)Photo by 1HaskellADay (@1HaskellADay)Photo by 1HaskellADay (@1HaskellADay)
1HaskellADay retweeted
Replying to @1HaskellADay
Map.intersectionWith const map $ Map.fromDistinctAscList [(k, ()) | k <- Set.toAscList set]
1
1
1HaskellADay retweeted
You could use Map.fromDistinctAscList/Map.toAscList for better performance (keys are already sorted), but there's no need as there's Map.filterWithKey (\k _ -> Set.member k set) map
1
1
1HaskellADay retweeted
I'd like to know if people find the Haskell community welcoming or unwelcoming I acknowledge that this is not a scientific poll and "welcoming" is not clearly defined. Also, feel free to leave comments elaborating on your answer
49%Haskell is welcoming
27%Haskell is unwelcoming
24%Other
747 votes • Final results
38
6
1
19
1HaskellADay retweeted
It's Friday, so you know what that means: Mods are asleep. Deploy experimental changes to prod
1
2
14
1HaskellADay retweeted
1
9
20
If p is prime, all the coefficients in (a+b)^p except the first and last are divisible by p.
10
48
6
306
1HaskellADay retweeted
Them: nooooo you can't just generate SQL from Haskell! Rel8: hahaha monad go brrrr
1
7
1
69
A computation that appears to require 32 multiplications can be done in 15.
2
9
Minimum criteria for a language to be Turing complete cs.stackexchange.com/questio…
2
15
46
Learning a language other than PHP will make you write better PHP.
35
32
7
395
'The essential virtue of category theory is as a discipline for making definitions, the programmer’s main task in life.' -- D. E. Rydeheard
3
13
Ring theory database ringtheory.herokuapp.com/
1
12
1
49
Fun FP tip: if you have a `fold` function defined for a tree, then the infamous interview question "invert a binary tree" becomes a one-liner! Here's an example in #elmlang
1
11
1
57
Undecidability and incompleteness of second-order logic. ~ Mark Koch. ps.uni-saarland.de/~koch/bac… #ITP #Cog #Logic #Math
1
2
2
'This branch of mathematics [probability] is the only one, I believe, in which good writers frequently get results entirely erroneous.' -- Charles Sanders Peirce
2
18
116
'Once the FFT method was established it became clear that it had a long an interesting prehistory going back as far as Gauss. But until the advent of computing machines it was a solution looking for a problem.' -- T. W. Korner
10
43
1HaskellADay retweeted
me three shimweasel.com/2015/02/17/ty… weirdly hard to get the word out.
2
3
9
I told a new haskeller i'm helping about holes: _ and how ghc suggests ways to fill them, and he says this feature should featured big, bold and centered on Haskell's front page!
7
17
3
79