Does high card count in flush

broken image
broken image
broken image

Sure enough we can press into service map and reduce to get us the information we need. The end result works well, is concise and readable (it's a lot shorter than the other proposed solutions at least). Usually if the answer is more than one or two lines of some fancy function I don't have the time, but yesterday the challenge was to rank poker hands and it struck me as one of those things that 'should' be easy! You, like me, may have a play at solving some of the daily challenges here on DEV.

broken image