I find this seriously elegant, if not entirely obvious (especially as formatted)😁
List.fold (fun (p, d) x ->
if Seq.contains x p then (p, x::d) else (x::p, d)) ([], []) list
And yes its a real solution to a real problem... still learning after 45 years (of writing code)
1
35
Replying to @gonortheast
@gonortheast what happened to the X70 ex Consett... I`my fairly certain I was here on time...
2
82
Reinstate Statistics on Parkrun for All Participants - Sign the Petition! chng.it/DKxYd9pJ via @UKChange
71
Useful (and the actual part one needs is visible) but paywalled... why? Its everything blogging wasn't supposed to be
2
58
At what point did medium decide that expertsexchange was the user engagement model they wanted to follow?
All I see now are potentially useful articles (things I would regard as regular "how to" blog posts) behind the paywall to the extent I'm likely to stop bothering to look
2
66
There is something amazing about being able to mess with a kubernetes cluster from my phone whilst on a bus (Web portal + kuvenav app)
There is something truly terrible about the fact that I have to (or even might want to 🙁)
2
70
Well **** - much as England did not deserve to be in the semi finals South Africa did not deserve to win that game 😕
1
92
Replying to @rugbyworldcup
@rugbyworldcup following the statement, at Marseille on Sunday I queued for an hour at a concession to be sent to another queue where after 30 minutes I was turned away again because the beer had run out there too.
Doesn't matter how much you have if we can't buy it.
1
86
So as I start my first day "resting - I had this parting thought from a colleague:
"I strongly feel, Maersk did not utilize fully your talent"
I think I'll take that🙂
3
196
Due to a re-org I've been made redundant. Again.
Seeking roles as a very experienced IC in the .NET space - ideally using #fsharp. Willing to learn and play with other FP oriented stacks.
Considerable breadth of knowledge across the developement as well as depth in .NET
So this afternoon was spent attempting to play "spot the difference" between this instance of a request (that worked) and that instance (that didn't).
Error in the existing code I was borrowing to "save time" - although that's supposed to be working code🤦♂️Error invisible because
269
Todays "why?" is a "look at how clever I am"
I have a list of about 25 rules to apply.
Honestly? Declare a static dictionary, you'll be golden?
No, use autofac to scan the assembly for all the rules, use autofac specifc data structures to inject same. Use metada from attr to map
1
133
Please don't do this 😭
_jsonSerializerSettings = new Mock<JsonSerializerSettings>();
Why? Just.... why?
93
The fact that the list of parameters to your constructor has the the same dependency _twice_ is probably telling you something 🤦🏻♂️(once in the middle of the list, once at the end...)
Now its only in once, I could wish addressing the actual problem was as straightforward
90
I just earned the 'Middle of the Road (Level 88)' badge on @untappd! untp.beer/s/b1095992331
52
I just earned the 'Draft City (Level 65)' badge on @untappd! untp.beer/s/b1095923241
36
I just earned the 'Beyond a Shadow of a Stout (Level 28)' badge on @untappd! untp.beer/s/b1094220069
38

