To first give you some context, the thing on the top is from The “Representable Functors” chapter of Category Theory for Programmers. So technically, you only need to read 230 Pages of a maths textbook to get it ;)
But this isn’t exactly what you asked for, so I’ll try to help you get it as best I can with my limited understanding of the subject. First of all it would be helpful to know what your prior knowledge in Maths, especially Set theory, is?
I think you’d be happy to know that I’ve gone for a bit of an overkill and used Pest to parse the commands, which automagically gets me an enum to match against in this position.
The sad part is, I haven’t gotten the Media upload to work, so the project is on ice for a little while…
I’m not sure how I would go about this in an elegant way since I’m matching the string I get from a message…
That’s a good point, thanks. Maybe I’ll go without the if entirely, the (janky) code is still very much in flux ;)
Almost, but not quite. It’s built against Presage
Inside me are two wolves I guess…
Wow you sound so smart!
I’m looking forward to the new version, thanks for doing all this work and I hope the update goes well :)