Yesterday's was tough and if I'm honest I'm getting tired. So it was nice to find a straightforward part 1 at least.
Model
Simple stuff, we've done this many times already.
data classPos(valx:Int,valy:Int,valz:Int)data classNanobot(valpos:Pos,valradius:Int)typealiasManhattan=IntoperatorfunPos.minus(other:Pos):Manhattan=Math.abs(x-other.x)+Math.abs(y-other.y)+Math.abs(z-other.z)
Parser
I've used parser combinators on nearly 2 out of 3 days this year, and I'm not going to stop now! At this point I'm writing them without requiring much reference to the documentation.
I'm a Sr. Software Engineer at Flashpoint. I specialize in Python and Go, building functional, practical, and maintainable web systems leveraging Kubernetes and the cloud. Blog opinions are my own.
Yesterday's was tough and if I'm honest I'm getting tired. So it was nice to find a straightforward part 1 at least.
Model
Simple stuff, we've done this many times already.
Parser
I've used parser combinators on nearly 2 out of 3 days this year, and I'm not going to stop now! At this point I'm writing them without requiring much reference to the documentation.
Part 1
Easy stuff.
Part 2
Oh wow, another doozy. I'll get back to you on this one!
Yeah you’ve definitely stuck with it. Nice job! 👍🏻