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.
Ryan is an engineer in the Sacramento Area with a focus in Python, Ruby, and Rust. Bash/Python Exercism mentor. Coding, physics, calculus, music, woodworking. Looking for work!
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! 👍🏻